Search in sources :

Example 16 with IsMultipleInstance

use of org.kie.workbench.common.stunner.bpmn.definition.property.task.IsMultipleInstance in project kie-wb-common by kiegroup.

the class SubprocessViewHandlerTest method prepareReusableSubprocessTest.

private void prepareReusableSubprocessTest(boolean multipleInstance, boolean sequential) {
    ReusableSubprocess subProcess = mock(ReusableSubprocess.class);
    ReusableSubprocessTaskExecutionSet executionSet = mock(ReusableSubprocessTaskExecutionSet.class);
    IsMultipleInstance isMultipleInstance = new IsMultipleInstance(multipleInstance);
    MultipleInstanceExecutionMode executionMode = new MultipleInstanceExecutionMode(sequential);
    when(executionSet.getIsMultipleInstance()).thenReturn(isMultipleInstance);
    when(executionSet.getMultipleInstanceExecutionMode()).thenReturn(executionMode);
    when(subProcess.getExecutionSet()).thenReturn(executionSet);
    viewHandler.handle(subProcess, svgShapeView);
}
Also used : ReusableSubprocess(org.kie.workbench.common.stunner.bpmn.definition.ReusableSubprocess) IsMultipleInstance(org.kie.workbench.common.stunner.bpmn.definition.property.task.IsMultipleInstance) MultipleInstanceExecutionMode(org.kie.workbench.common.stunner.bpmn.definition.property.task.MultipleInstanceExecutionMode) ReusableSubprocessTaskExecutionSet(org.kie.workbench.common.stunner.bpmn.definition.property.task.ReusableSubprocessTaskExecutionSet)

Example 17 with IsMultipleInstance

use of org.kie.workbench.common.stunner.bpmn.definition.property.task.IsMultipleInstance in project kie-wb-common by kiegroup.

the class SubprocessViewHandlerTest method prepareMISubProcessTest.

private void prepareMISubProcessTest(boolean multipleInstance, boolean sequential) {
    MultipleInstanceSubprocess subProcess = mock(MultipleInstanceSubprocess.class);
    MultipleInstanceSubprocessTaskExecutionSet executionSet = mock(MultipleInstanceSubprocessTaskExecutionSet.class);
    IsMultipleInstance isMultipleInstance = new IsMultipleInstance(multipleInstance);
    MultipleInstanceExecutionMode executionMode = new MultipleInstanceExecutionMode(sequential);
    when(executionSet.getIsMultipleInstance()).thenReturn(isMultipleInstance);
    when(executionSet.getMultipleInstanceExecutionMode()).thenReturn(executionMode);
    when(subProcess.getExecutionSet()).thenReturn(executionSet);
    viewHandler.handle(subProcess, svgShapeView);
}
Also used : IsMultipleInstance(org.kie.workbench.common.stunner.bpmn.definition.property.task.IsMultipleInstance) MultipleInstanceExecutionMode(org.kie.workbench.common.stunner.bpmn.definition.property.task.MultipleInstanceExecutionMode) MultipleInstanceSubprocessTaskExecutionSet(org.kie.workbench.common.stunner.bpmn.definition.property.task.MultipleInstanceSubprocessTaskExecutionSet) MultipleInstanceSubprocess(org.kie.workbench.common.stunner.bpmn.definition.MultipleInstanceSubprocess)

Aggregations

IsMultipleInstance (org.kie.workbench.common.stunner.bpmn.definition.property.task.IsMultipleInstance)17 MultipleInstanceExecutionMode (org.kie.workbench.common.stunner.bpmn.definition.property.task.MultipleInstanceExecutionMode)13 SLADueDate (org.kie.workbench.common.stunner.bpmn.definition.property.general.SLADueDate)12 IsAsync (org.kie.workbench.common.stunner.bpmn.definition.property.task.IsAsync)12 MultipleInstanceCollectionInput (org.kie.workbench.common.stunner.bpmn.definition.property.task.MultipleInstanceCollectionInput)12 MultipleInstanceCollectionOutput (org.kie.workbench.common.stunner.bpmn.definition.property.task.MultipleInstanceCollectionOutput)12 MultipleInstanceDataInput (org.kie.workbench.common.stunner.bpmn.definition.property.task.MultipleInstanceDataInput)12 MultipleInstanceDataOutput (org.kie.workbench.common.stunner.bpmn.definition.property.task.MultipleInstanceDataOutput)12 OnEntryAction (org.kie.workbench.common.stunner.bpmn.definition.property.task.OnEntryAction)11 OnExitAction (org.kie.workbench.common.stunner.bpmn.definition.property.task.OnExitAction)11 AssignmentsInfo (org.kie.workbench.common.stunner.bpmn.definition.property.dataio.AssignmentsInfo)10 AdHocAutostart (org.kie.workbench.common.stunner.bpmn.definition.property.task.AdHocAutostart)10 MultipleInstanceCompletionCondition (org.kie.workbench.common.stunner.bpmn.definition.property.task.MultipleInstanceCompletionCondition)10 ScriptTypeListValue (org.kie.workbench.common.stunner.bpmn.definition.property.task.ScriptTypeListValue)9 ScriptTypeValue (org.kie.workbench.common.stunner.bpmn.definition.property.task.ScriptTypeValue)9 Test (org.junit.Test)8 AdvancedData (org.kie.workbench.common.stunner.bpmn.definition.property.variables.AdvancedData)6 Documentation (org.kie.workbench.common.stunner.bpmn.definition.property.general.Documentation)5 Name (org.kie.workbench.common.stunner.bpmn.definition.property.general.Name)5 BPMNGeneralSet (org.kie.workbench.common.stunner.bpmn.definition.property.general.BPMNGeneralSet)4