use of org.cristalise.kernel.lifecycle.instance.predefined.item.ItemPredefinedStepContainer in project kernel by cristal-ise.
the class PredefinedStep method getPredefStepSchemaName.
public static String getPredefStepSchemaName(String stepName) {
PredefinedStepContainer[] allSteps = { new ItemPredefinedStepContainer(), new AgentPredefinedStepContainer(), new ServerPredefinedStepContainer() };
for (PredefinedStepContainer thisContainer : allSteps) {
String stepPath = thisContainer.getName() + "/" + stepName;
Activity step = (Activity) thisContainer.search(stepPath);
if (step != null) {
return (String) step.getBuiltInProperty(SCHEMA_NAME);
}
}
// default to standard if not found - server may be a newer version
return "PredefinedStepOutcome";
}
Aggregations