*/
private static void setStateDefinitionProperties(
ProcessDefinition processDefinition, String jbpmNodeName,
String name, String description, boolean publicState)
{
StateDefinition stateDefinition;
try {
stateDefinition = StateDefinition.getStateDefinition(processDefinition, jbpmNodeName);
} catch (JDOObjectNotFoundException x) {
return;
}
stateDefinition.getName().setText(Locale.ENGLISH.getLanguage(), name);
stateDefinition.getDescription().setText(Locale.ENGLISH.getLanguage(), description);
stateDefinition.setPublicState(publicState);
}