コード例 #1
0
 private void validateModel(BpmnModel model) {
   FlowElement flowElement = model.getFlowElement("_5");
   assertNotNull(flowElement);
   assertTrue(flowElement instanceof ScriptTask);
   assertEquals("_5", flowElement.getId());
   ScriptTask scriptTask = (ScriptTask) flowElement;
   assertEquals("_5", scriptTask.getId());
   assertEquals("Send Hello Message", scriptTask.getName());
 }
コード例 #2
0
 public ScriptTaskActivityBehavior createScriptTaskActivityBehavior(ScriptTask scriptTask) {
   String language = scriptTask.getScriptFormat();
   if (language == null) {
     language = ScriptingEngines.DEFAULT_SCRIPTING_LANGUAGE;
   }
   return new ScriptTaskActivityBehavior(
       scriptTask.getScript(),
       language,
       scriptTask.getResultVariable(),
       scriptTask.isAutoStoreVariables());
 }