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 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 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()); }
public EmbeddedSubprocessExecutionSet() { this(new OnEntryAction(new ScriptTypeListValue().addValue(new ScriptTypeValue("java", ""))), new OnExitAction(new ScriptTypeListValue().addValue(new ScriptTypeValue("java", ""))), new IsAsync()); }
private ScriptTypeValue copy(ScriptTypeValue source, boolean createIfSourceNull) { if (source == null) { return createIfSourceNull ? new ScriptTypeValue() : null; } ScriptTypeValue copy = new ScriptTypeValue(); copy.setScript(source.getScript()); copy.setLanguage(source.getLanguage()); return copy; } }
public ScriptTaskExecutionSet() { this(new Script(new ScriptTypeValue("java", "")), new IsAsync()); }
@Override public boolean equals(Object o) { if (o instanceof ReusableSubprocessTaskExecutionSet) { ReusableSubprocessTaskExecutionSet other = (ReusableSubprocessTaskExecutionSet) o; return calledElement.equals(other.calledElement) && independent.equals(other.independent) && waitForCompletion.equals(other.waitForCompletion) && isAsync.equals(other.isAsync) && onEntryAction.equals(other.onEntryAction) && onExitAction.equals(other.onExitAction); } return false; } }
private void assertScriptTaskExecutionSet(ScriptTaskExecutionSet executionSet, String script, String scriptLanguage, boolean isAsync) { assertNotNull(executionSet); assertNotNull(executionSet.getScript()); assertNotNull(executionSet.getScript().getValue()); assertNotNull(executionSet.getIsAsync()); assertEquals(script, executionSet.getScript().getValue().getScript()); assertEquals(scriptLanguage, executionSet.getScript().getValue().getLanguage()); assertEquals(isAsync, executionSet.getIsAsync().getValue()); } }
private ScriptTypeListValue mockList(int count) { ArrayList<ScriptTypeValue> values = new ArrayList<>(); for (int i = 0; i < count; i++) { values.add(new ScriptTypeValue(LANGUAGE + i, SCRIPT + i)); } return new ScriptTypeListValue(values); } }
@Override protected ReusableSubprocessTaskExecutionSet createReusableSubprocessTaskExecutionSet(CalledElement calledElement, Independent independent, WaitForCompletion waitForCompletion, IsAsync isAsync, OnEntryAction onEntryAction, OnExitAction onExitAction, ActivityPropertyReader p) { return new ReusableSubprocessTaskExecutionSet(calledElement, independent, waitForCompletion, isAsync, onEntryAction, onExitAction); } }
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", "")))); }
@Override public boolean equals(Object o) { if (o instanceof ProcessReusableSubprocessTaskExecutionSet) { ProcessReusableSubprocessTaskExecutionSet other = (ProcessReusableSubprocessTaskExecutionSet) o; return calledElement.equals(other.calledElement) && isCase.equals(other.isCase) && independent.equals(other.independent) && waitForCompletion.equals(other.waitForCompletion) && isAsync.equals(other.isAsync) && onEntryAction.equals(other.onEntryAction) && onExitAction.equals(other.onExitAction); } return false; }
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", "")))); }
@Override public boolean equals(Object o) { if (o instanceof CaseReusableSubprocessTaskExecutionSet) { CaseReusableSubprocessTaskExecutionSet other = (CaseReusableSubprocessTaskExecutionSet) o; return calledElement.equals(other.calledElement) && isCase.equals(other.isCase) && independent.equals(other.independent) && waitForCompletion.equals(other.waitForCompletion) && isAsync.equals(other.isAsync) && onEntryAction.equals(other.onEntryAction) && onExitAction.equals(other.onExitAction); } return false; } }