Examples of ScriptTask


Examples of org.activiti.bpmn.model.ScriptTask

   * @param original
   *          the object to clone
   * @return a clone of the original object
   */
  private static final ScriptTask clone(final ScriptTask original, final Diagram diagram) {
    ScriptTask result = new ScriptTask();

    result.setId(ActivitiUiUtil.getNextId(result.getClass(), CreateScriptTaskFeature.FEATURE_ID_KEY, diagram));
    result.setScript(original.getScript());
    result.setScriptFormat(original.getScriptFormat());

    return result;

  }
View Full Code Here

Examples of org.activiti.bpmn.model.ScriptTask

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

Examples of org.activiti.bpmn.model.ScriptTask

    propertiesNode.put(PROPERTY_SCRIPT_FORMAT, scriptTask.getScriptFormat());
    propertiesNode.put(PROPERTY_SCRIPT_TEXT, scriptTask.getScript());
  }
 
  protected FlowElement convertJsonToElement(JsonNode elementNode, JsonNode modelNode, Map<String, JsonNode> shapeMap) {
    ScriptTask task = new ScriptTask();
    task.setScriptFormat(getPropertyValueAsString(PROPERTY_SCRIPT_FORMAT, elementNode));
    task.setScript(getPropertyValueAsString(PROPERTY_SCRIPT_TEXT, elementNode));
    return task;
  }
View Full Code Here

Examples of org.eclipse.bpmn2.ScriptTask

            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

Examples of org.eclipse.bpmn2.ScriptTask

  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

Examples of org.eclipse.bpmn2.ScriptTask

    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

Examples of org.eclipse.bpmn2.ScriptTask

      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
Copyright © 2018 www.massapi.com. 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.