Package org.apache.ace.gogo.execute

Examples of org.apache.ace.gogo.execute.ScriptExecutor$ScriptTask


        String script = System.getProperty("ace.gogo.script");
        if (script != null) {
            long delay = Long.getLong("ace.gogo.script.delay", 300L);

            manager.add(createComponent()
                .setImplementation(new ScriptExecutor(script, delay))
                .setComposition("getInstances")
                .add(createServiceDependency()
                    .setService(CommandProcessor.class)
                    .setRequired(true)));
        }
View Full Code Here


            if (result == null)
                result = defaultCase(theEObject);
            return result;
        }
        case Bpmn2Package.SCRIPT_TASK: {
            ScriptTask scriptTask = (ScriptTask) theEObject;
            T result = caseScriptTask(scriptTask);
            if (result == null)
                result = caseTask(scriptTask);
            if (result == null)
                result = caseActivity(scriptTask);
View Full Code Here

  protected String getStencilId(FlowElement flowElement) {
    return STENCIL_TASK_SCRIPT;
  }
 
  protected void convertElementToJson(ObjectNode propertiesNode, FlowElement flowElement) {
    ScriptTask scriptTask = (ScriptTask) flowElement;
    propertiesNode.put(PROPERTY_SCRIPT_TEXT, scriptTask.getScript());
  }
View Full Code Here

    ScriptTask scriptTask = (ScriptTask) flowElement;
    propertiesNode.put(PROPERTY_SCRIPT_TEXT, scriptTask.getScript());
  }
 
  protected FlowElement convertJsonToElement(JsonNode elementNode, JsonNode modelNode, Map<String, JsonNode> shapeMap) {
    ScriptTask task = Bpmn2Factory.eINSTANCE.createScriptTask();// ScriptTask();
    //String scriptFormat = ProcessEngineManagement.getDefaultProcessEngine().getProcessEngineConfiguration().getScriptLanguageConfig().getSelected();
    String scriptFormat = "Groovy";
    task.setScriptFormat(scriptFormat);
    BpmnModelUtil.addExtensionAttribute(task, FixFlowPackage.Literals.DOCUMENT_ROOT__SCRIPT_NAME, getPropertyValueAsString(PROPERTY_SCRIPT_TEXT, elementNode));
    task.setScript(getPropertyValueAsString(PROPERTY_SCRIPT_TEXT, elementNode));
    return task;
  }
View Full Code Here

      super(fp, "Script Task", "Task executed by a business process engine");
    }

    @Override
    protected Task createFlowElement(ICreateContext context) {
      ScriptTask task = ModelHandler.FACTORY.createScriptTask();
      task.setName("Script Task");
      return task;
    }
View Full Code Here

TOP

Related Classes of org.apache.ace.gogo.execute.ScriptExecutor$ScriptTask

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.