public static OnEntryAction onEntry(Task task) { return new OnEntryAction(onEntry(task.getExtensionValues())); }
@Test public void testOnEntryActionEqualsAndHashCode() { TestCaseBuilder.newTestCase() .addTrueCase(new OnEntryAction(), new OnEntryAction()) .addTrueCase(new OnEntryAction(new ScriptTypeListValue()), new OnEntryAction(new ScriptTypeListValue())) .test(); }
public EmbeddedSubprocessExecutionSet() { this(new OnEntryAction(new ScriptTypeListValue().addValue(new ScriptTypeValue("java", ""))), new OnExitAction(new ScriptTypeListValue().addValue(new ScriptTypeValue("java", ""))), new IsAsync()); }
@Test public void testAdHocSubprocessTaskExecutionSEtSetEqualsAndHashCode() { TestCaseBuilder.newTestCase() .addTrueCase(new AdHocSubprocessTaskExecutionSet(), new AdHocSubprocessTaskExecutionSet()) .addTrueCase(new AdHocSubprocessTaskExecutionSet(new AdHocCompletionCondition(), new AdHocOrdering(), new OnEntryAction(), new OnExitAction()), new AdHocSubprocessTaskExecutionSet(new AdHocCompletionCondition(), new AdHocOrdering(), new OnEntryAction(), new OnExitAction())) .test(); }
public AdHocSubprocessTaskExecutionSet() { this(new AdHocCompletionCondition(new ScriptTypeValue("mvel", "autocomplete")), new AdHocOrdering("Sequential"), 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 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 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 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); }
private BpmnNode convertAdHocSubProcess(org.eclipse.bpmn2.AdHocSubProcess subProcess) { Node<View<A>, Edge> node = delegate.factoryManager.newNode(subProcess.getId(), getAdhocSubprocessClass()); A definition = node.getContent().getDefinition(); AdHocSubProcessPropertyReader p = delegate.propertyReaderFactory.of(subProcess); definition.setGeneral(new BPMNGeneralSet(new Name(subProcess.getName()), new Documentation(p.getDocumentation()) )); definition.setProcessData(new ProcessData(new ProcessVariables(p.getProcessVariables()))); definition.setExecutionSet(new AdHocSubprocessTaskExecutionSet(new AdHocCompletionCondition(p.getAdHocCompletionCondition()), new AdHocOrdering(p.getAdHocOrdering()), new OnEntryAction(p.getOnEntryAction()), new OnExitAction(p.getOnExitAction()) )); 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("")); }
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); }
@Test public void testBusinessRuleTaskExecutionSetEqualsAndHashCode() { TestCaseBuilder.newTestCase() .addTrueCase(new BusinessRuleTaskExecutionSet(), new BusinessRuleTaskExecutionSet()) .addTrueCase(new BusinessRuleTaskExecutionSet(new RuleLanguage(), new RuleFlowGroup(), new Namespace(), new DecisionName(), new DmnModelName(), new OnEntryAction(), new OnExitAction(), new IsAsync(), new AdHocAutostart()), new BusinessRuleTaskExecutionSet(new RuleLanguage(), new RuleFlowGroup(), new Namespace(), new DecisionName(), new DmnModelName(), new OnEntryAction(), new OnExitAction(), new IsAsync(), new AdHocAutostart())) .test(); }
new CreatedBy(p.getCreatedBy()), new AdHocAutostart(p.isAdHocAutostart()), new OnEntryAction(p.getOnEntryAction()), new OnExitAction(p.getOnExitAction()), new Content(p.getContent()),
@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); }
entryAction.setScript("StageTest"); entryAction.setLanguage("java"); stage.getExecutionSet().setOnEntryAction(new OnEntryAction(new ScriptTypeListValue(Collections.singletonList(entryAction))));