use of org.cristalise.kernel.lifecycle.instance.predefined.server.ServerPredefinedStepContainer 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";
}
use of org.cristalise.kernel.lifecycle.instance.predefined.server.ServerPredefinedStepContainer in project kernel by cristal-ise.
the class Bootstrap method initServerItemWf.
public static void initServerItemWf() throws Exception {
CompositeActivityDef serverWfCa = (CompositeActivityDef) LocalObjectLoader.getActDef("ServerItemWorkflow", 0);
Workflow wf = new Workflow((CompositeActivity) serverWfCa.instantiate(), new ServerPredefinedStepContainer());
wf.initialise(thisServerPath.getItemPath(), systemAgents.get("system").getPath(), null);
Gateway.getStorage().put(thisServerPath.getItemPath(), wf, null);
}
Aggregations