Search in sources :

Example 11 with ScriptTask

use of org.activiti.bpmn.model.ScriptTask in project Activiti by Activiti.

the class ScriptTaskJsonConverter method convertJsonToElement.

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;
}
Also used : ScriptTask(org.activiti.bpmn.model.ScriptTask)

Aggregations

ScriptTask (org.activiti.bpmn.model.ScriptTask)11 BpmnModel (org.activiti.bpmn.model.BpmnModel)4 EndEvent (org.activiti.bpmn.model.EndEvent)4 Process (org.activiti.bpmn.model.Process)4 SequenceFlow (org.activiti.bpmn.model.SequenceFlow)4 StartEvent (org.activiti.bpmn.model.StartEvent)4 Test (org.junit.Test)4 JobDefinitionCreateRequest (org.finra.herd.model.api.xml.JobDefinitionCreateRequest)3 FlowElement (org.activiti.bpmn.model.FlowElement)1 HistoricVariableInstance (org.activiti.engine.history.HistoricVariableInstance)1 ProcessInstance (org.activiti.engine.runtime.ProcessInstance)1 AlreadyExistsException (org.finra.herd.model.AlreadyExistsException)1 ObjectNotFoundException (org.finra.herd.model.ObjectNotFoundException)1 JobDefinitionUpdateRequest (org.finra.herd.model.api.xml.JobDefinitionUpdateRequest)1 HerdActivitiServiceTaskTest (org.finra.herd.service.activiti.task.HerdActivitiServiceTaskTest)1 Transactional (org.springframework.transaction.annotation.Transactional)1