public EventSubprocessExecutionSet() { this(new IsAsync()); }
public ScriptTaskExecutionSet() { this(new Script(new ScriptTypeValue("java", "")), new IsAsync()); }
@Test public void testScriptTaskExecutionSetEqualsAndHashCode() { TestCaseBuilder.newTestCase() .addTrueCase(new ScriptTaskExecutionSet(), new ScriptTaskExecutionSet()) .addTrueCase(new ScriptTaskExecutionSet(new Script(), new IsAsync()), new ScriptTaskExecutionSet(new Script(), new IsAsync())) .test(); }
public EmbeddedSubprocessExecutionSet() { this(new OnEntryAction(new ScriptTypeListValue().addValue(new ScriptTypeValue("java", ""))), new OnExitAction(new ScriptTypeListValue().addValue(new ScriptTypeValue("java", ""))), new IsAsync()); }
public ServiceTaskExecutionSet() { this(new TaskName("Service Task"), new IsAsync(), new AdHocAutostart(), new OnEntryAction(new ScriptTypeListValue().addValue(new ScriptTypeValue("java", ""))), new OnExitAction(new ScriptTypeListValue().addValue(new ScriptTypeValue("java", "")))); }
public ReusableSubprocessTaskExecutionSet() { this(new CalledElement(), new Independent(), new WaitForCompletion(), new IsAsync(), new OnEntryAction(new ScriptTypeListValue().addValue(new ScriptTypeValue("java", ""))), new OnExitAction(new ScriptTypeListValue().addValue(new ScriptTypeValue("java", "")))); }
public ProcessReusableSubprocessTaskExecutionSet() { this(new CalledElement(), new IsCase(false), new Independent(), new WaitForCompletion(), new IsAsync(), new OnEntryAction(new ScriptTypeListValue().addValue(new ScriptTypeValue("java", ""))), new OnExitAction(new ScriptTypeListValue().addValue(new ScriptTypeValue("java", "")))); }
public CaseReusableSubprocessTaskExecutionSet() { this(new CalledElement(), new IsCase(true), new Independent(), new WaitForCompletion(), new IsAsync(), new OnEntryAction(new ScriptTypeListValue().addValue(new ScriptTypeValue("java", ""))), new OnExitAction(new ScriptTypeListValue().addValue(new ScriptTypeValue("java", "")))); }
public BusinessRuleTaskExecutionSet() { this(new RuleLanguage(), new RuleFlowGroup(), new Namespace(), new DecisionName(), new DmnModelName(), new OnEntryAction(new ScriptTypeListValue().addValue(new ScriptTypeValue("java", ""))), new OnExitAction(new ScriptTypeListValue().addValue(new ScriptTypeValue("java", ""))), new IsAsync(), new AdHocAutostart()); }
public MultipleInstanceSubprocessTaskExecutionSet() { this(new MultipleInstanceCollectionInput(), new MultipleInstanceCollectionOutput(), new MultipleInstanceDataInput(), new MultipleInstanceDataOutput(), new MultipleInstanceCompletionCondition(), new OnEntryAction(new ScriptTypeListValue().addValue(new ScriptTypeValue("java", ""))), new OnExitAction(new ScriptTypeListValue().addValue(new ScriptTypeValue("java", ""))), new MITrigger("true"), new IsAsync()); }
private BpmnNode scriptTask(org.eclipse.bpmn2.ScriptTask task) { Node<View<ScriptTask>, Edge> node = factoryManager.newNode(task.getId(), ScriptTask.class); ScriptTask definition = node.getContent().getDefinition(); ScriptTaskPropertyReader p = propertyReaderFactory.of(task); definition.setGeneral(new TaskGeneralSet( new Name(p.getName()), new Documentation(p.getDocumentation()) )); definition.setExecutionSet(new ScriptTaskExecutionSet( new Script(p.getScript()), new IsAsync(p.isAsync()) )); node.getContent().setBounds(p.getBounds()); definition.setDimensionsSet(p.getRectangleDimensionsSet()); definition.setBackgroundSet(p.getBackgroundSet()); definition.setFontSet(p.getFontSet()); definition.setSimulationSet(p.getSimulationSet()); return BpmnNode.of(node); }
private BpmnNode convertEventSubprocessNode(SubProcess subProcess) { Node<View<EventSubprocess>, Edge> node = delegate.factoryManager.newNode(subProcess.getId(), EventSubprocess.class); EventSubprocess definition = node.getContent().getDefinition(); SubProcessPropertyReader p = delegate.propertyReaderFactory.of(subProcess); definition.setGeneral(new BPMNGeneralSet(new Name(subProcess.getName()), new Documentation(p.getDocumentation()) )); definition.setExecutionSet(new EventSubprocessExecutionSet(new IsAsync(p.isAsync()))); definition.setProcessData(new ProcessData(new ProcessVariables(p.getProcessVariables()))); definition.setSimulationSet(p.getSimulationSet()); definition.setDimensionsSet(p.getRectangleDimensionsSet()); definition.setFontSet(p.getFontSet()); definition.setBackgroundSet(p.getBackgroundSet()); node.getContent().setBounds(p.getBounds()); return BpmnNode.of(node); }
private BpmnNode convertEmbeddedSubprocessNode(SubProcess subProcess) { Node<View<EmbeddedSubprocess>, Edge> node = delegate.factoryManager.newNode(subProcess.getId(), EmbeddedSubprocess.class); EmbeddedSubprocess definition = node.getContent().getDefinition(); SubProcessPropertyReader p = delegate.propertyReaderFactory.of(subProcess); definition.setGeneral(new BPMNGeneralSet(new Name(subProcess.getName()), new Documentation(p.getDocumentation()) )); definition.setExecutionSet(new EmbeddedSubprocessExecutionSet(new OnEntryAction(p.getOnEntryAction()), new OnExitAction(p.getOnExitAction()), new IsAsync(p.isAsync()) )); definition.setProcessData(new ProcessData(new ProcessVariables(p.getProcessVariables()))); definition.setSimulationSet(p.getSimulationSet()); node.getContent().setBounds(p.getBounds()); definition.setDimensionsSet(p.getRectangleDimensionsSet()); definition.setFontSet(p.getFontSet()); definition.setBackgroundSet(p.getBackgroundSet()); return BpmnNode.of(node); }
public UserTaskExecutionSet() { this(new TaskName("Task"), new Actors(), new Groupid(), new AssignmentsInfo(), new IsAsync(), new Skippable(), new Priority(""), new Subject(""), new Description(""), new CreatedBy(), new AdHocAutostart(), new OnEntryAction(new ScriptTypeListValue().addValue(new ScriptTypeValue("java", ""))), new OnExitAction(new ScriptTypeListValue().addValue(new ScriptTypeValue("java", ""))), new Content(""), new SLADueDate("")); }
@Test public void JBPM_7525_eventSubProcessShouldStoreIsAsync() { ConverterFactory f = new ConverterFactory(new DefinitionsBuildingContext( new GraphImpl("x", new GraphNodeStoreImpl())), new PropertyWriterFactory()); SubProcessConverter c = f.subProcessConverter(); NodeImpl<View<? extends BPMNViewDefinition>> n = new NodeImpl<>("n"); EventSubprocess subProcessNode = new EventSubprocess(); subProcessNode.getExecutionSet().setIsAsync(new IsAsync(true)); n.setContent(new ViewImpl<>(subProcessNode, Bounds.create())); Activity activity = c.convertSubProcess(n).value().getFlowElement(); Boolean value = CustomElement.async.of(activity).get(); assertThat(value).isEqualTo(true); } }
private BpmnNode serviceTask(org.eclipse.bpmn2.Task task) { Node<View<ServiceTask>, Edge> node = factoryManager.newNode(task.getId(), ServiceTask.class); ServiceTask definition = node.getContent().getDefinition(); ServiceTaskPropertyReader p = propertyReaderFactory.ofCustom(task); definition.setName(p.getServiceTaskName()); definition.getTaskType().setRawType(p.getServiceTaskName()); definition.setDescription(p.getServiceTaskDescription()); definition.setCategory(p.getServiceTaskCategory()); definition.setDefaultHandler(p.getServiceTaskDefaultHandler()); definition.setGeneral(new TaskGeneralSet( new Name(p.getName()), new Documentation(p.getDocumentation()) )); definition.setDataIOSet(new DataIOSet( p.getAssignmentsInfo() )); definition.setExecutionSet(new ServiceTaskExecutionSet( new TaskName(p.getTaskName()), new IsAsync(p.isAsync()), new AdHocAutostart(p.isAdHocAutoStart()), new OnEntryAction(p.getOnEntryAction()), new OnExitAction(p.getOnExitAction()) )); definition.setSimulationSet(p.getSimulationSet()); node.getContent().setBounds(p.getBounds()); definition.setDimensionsSet(p.getRectangleDimensionsSet()); definition.setBackgroundSet(p.getBackgroundSet()); definition.setFontSet(p.getFontSet()); return BpmnNode.of(node); }
private BpmnNode convertMultInstanceSubprocessNode(SubProcess subProcess) { Node<View<MultipleInstanceSubprocess>, Edge> node = delegate.factoryManager.newNode(subProcess.getId(), MultipleInstanceSubprocess.class); MultipleInstanceSubprocess definition = node.getContent().getDefinition(); MultipleInstanceSubProcessPropertyReader p = delegate.propertyReaderFactory.ofMultipleInstance(subProcess); definition.setGeneral(new BPMNGeneralSet(new Name(p.getName()), new Documentation(p.getDocumentation()) )); definition.setExecutionSet( new MultipleInstanceSubprocessTaskExecutionSet(new MultipleInstanceCollectionInput(p.getCollectionInput()), new MultipleInstanceCollectionOutput(p.getCollectionOutput()), new MultipleInstanceDataInput(p.getDataInput()), new MultipleInstanceDataOutput(p.getDataOutput()), new MultipleInstanceCompletionCondition(p.getCompletionCondition()), new OnEntryAction(p.getOnEntryAction()), new OnExitAction(p.getOnExitAction()), new MITrigger("true"), new IsAsync(p.isAsync()) )); definition.setProcessData(new ProcessData(new ProcessVariables(p.getProcessVariables()))); definition.setSimulationSet(p.getSimulationSet()); definition.setDimensionsSet(p.getRectangleDimensionsSet()); definition.setFontSet(p.getFontSet()); definition.setBackgroundSet(p.getBackgroundSet()); node.getContent().setBounds(p.getBounds()); return BpmnNode.of(node); }
new Groupid(p.getGroupid()), p.getAssignmentsInfo(), new IsAsync(p.isAsync()), new Skippable(p.isSkippable()), new Priority(p.getPriority()),
@SuppressWarnings("unchecked") public BpmnNode convert(CallActivity activity) { ActivityPropertyReader p = propertyReaderFactory.of(activity); Node<View<R>, Edge> node = createNode(activity, p); R definition = node.getContent().getDefinition(); definition.setGeneral(new BPMNGeneralSet( new Name(p.getName()), new Documentation(p.getDocumentation()) )); definition.setExecutionSet(createReusableSubprocessTaskExecutionSet( new CalledElement(activity.getCalledElement()), new Independent(p.isIndependent()), new WaitForCompletion(p.isWaitForCompletion()), new IsAsync(p.isAsync()), new OnEntryAction(p.getOnEntryAction()), new OnExitAction(p.getOnExitAction()), p )); definition.setDataIOSet(new DataIOSet(p.getAssignmentsInfo())); node.getContent().setBounds(p.getBounds()); definition.setSimulationSet(p.getSimulationSet()); definition.setDimensionsSet(p.getRectangleDimensionsSet()); definition.setFontSet(p.getFontSet()); definition.setBackgroundSet(p.getBackgroundSet()); return BpmnNode.of(node); }
new Groupid(), new AssignmentsInfo(), new IsAsync(), new Skippable(), new Priority(),