Search in sources :

Example 31 with IntermediateSignalEventCatching

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

the class CatchingIntermediateEventFilterProviderTest method testFilterProviderShowCancelActivityField.

@Test
public void testFilterProviderShowCancelActivityField() {
    BaseCatchingIntermediateEvent[] testedClasses = { new IntermediateTimerEvent(), new IntermediateConditionalEvent(), new IntermediateSignalEventCatching(), new IntermediateTimerEvent(), new IntermediateMessageEventCatching() };
    when(graphIndex.getNode(UUID)).thenReturn(dockedNode);
    Stream.of(testedClasses).forEach(catchingIntermediateEvent -> testFilterProviderShowCancelActivityField(catchingIntermediateEvent));
}
Also used : IntermediateSignalEventCatching(org.kie.workbench.common.stunner.bpmn.definition.IntermediateSignalEventCatching) IntermediateTimerEvent(org.kie.workbench.common.stunner.bpmn.definition.IntermediateTimerEvent) IntermediateConditionalEvent(org.kie.workbench.common.stunner.bpmn.definition.IntermediateConditionalEvent) IntermediateMessageEventCatching(org.kie.workbench.common.stunner.bpmn.definition.IntermediateMessageEventCatching) BaseCatchingIntermediateEvent(org.kie.workbench.common.stunner.bpmn.definition.BaseCatchingIntermediateEvent) Test(org.junit.Test)

Example 32 with IntermediateSignalEventCatching

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

the class CatchingIntermediateEventFilterProviderTest method testFilterProviderDontShowCancelActivityField.

@Test
public void testFilterProviderDontShowCancelActivityField() {
    BaseCatchingIntermediateEvent[] test1Classes = { new IntermediateTimerEvent(), new IntermediateErrorEventCatching(), new IntermediateConditionalEvent(), new IntermediateCompensationEvent(), new IntermediateSignalEventCatching(), new IntermediateTimerEvent(), new IntermediateMessageEventCatching() };
    when(graphIndex.getNode(UUID)).thenReturn(noDockedNode);
    Stream.of(test1Classes).forEach(catchingIntermediateEvent -> testFilterProviderDontShowCancelActivityField(catchingIntermediateEvent));
    BaseCatchingIntermediateEvent[] test2Classes = { new IntermediateErrorEventCatching(), new IntermediateCompensationEvent() };
    when(graphIndex.getNode(UUID)).thenReturn(dockedNode);
    Stream.of(test2Classes).forEach(clazz -> testFilterProviderDontShowCancelActivityField(clazz));
}
Also used : IntermediateSignalEventCatching(org.kie.workbench.common.stunner.bpmn.definition.IntermediateSignalEventCatching) IntermediateErrorEventCatching(org.kie.workbench.common.stunner.bpmn.definition.IntermediateErrorEventCatching) IntermediateTimerEvent(org.kie.workbench.common.stunner.bpmn.definition.IntermediateTimerEvent) IntermediateConditionalEvent(org.kie.workbench.common.stunner.bpmn.definition.IntermediateConditionalEvent) IntermediateMessageEventCatching(org.kie.workbench.common.stunner.bpmn.definition.IntermediateMessageEventCatching) BaseCatchingIntermediateEvent(org.kie.workbench.common.stunner.bpmn.definition.BaseCatchingIntermediateEvent) IntermediateCompensationEvent(org.kie.workbench.common.stunner.bpmn.definition.IntermediateCompensationEvent) Test(org.junit.Test)

Example 33 with IntermediateSignalEventCatching

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

the class VariableUtilsTest method mockIntermediateSignalEventCatching.

private IntermediateSignalEventCatching mockIntermediateSignalEventCatching(String name, String assignmentsInfoValue) {
    IntermediateSignalEventCatching result = mockCatchingEvent(name, IntermediateSignalEventCatching.class);
    AssignmentsInfo assignmentsInfo = mockAssignmentsInfo(assignmentsInfoValue);
    DataIOSet dataIOSet = mockIOSet(assignmentsInfo);
    when(result.getDataIOSet()).thenReturn(dataIOSet);
    return result;
}
Also used : DataIOSet(org.kie.workbench.common.stunner.bpmn.definition.property.dataio.DataIOSet) IntermediateSignalEventCatching(org.kie.workbench.common.stunner.bpmn.definition.IntermediateSignalEventCatching) AssignmentsInfo(org.kie.workbench.common.stunner.bpmn.definition.property.dataio.AssignmentsInfo)

Aggregations

IntermediateSignalEventCatching (org.kie.workbench.common.stunner.bpmn.definition.IntermediateSignalEventCatching)33 Test (org.junit.Test)24 Metadata (org.kie.workbench.common.stunner.core.diagram.Metadata)18 Graph (org.kie.workbench.common.stunner.core.graph.Graph)18 DataIOSet (org.kie.workbench.common.stunner.bpmn.definition.property.dataio.DataIOSet)5 CancellingSignalEventExecutionSet (org.kie.workbench.common.stunner.bpmn.definition.property.event.signal.CancellingSignalEventExecutionSet)5 CancelActivity (org.kie.workbench.common.stunner.bpmn.definition.property.event.CancelActivity)4 SignalEventDefinition (org.eclipse.bpmn2.SignalEventDefinition)3 IntermediateMessageEventCatching (org.kie.workbench.common.stunner.bpmn.definition.IntermediateMessageEventCatching)3 AssignmentsInfo (org.kie.workbench.common.stunner.bpmn.definition.property.dataio.AssignmentsInfo)3 SignalRef (org.kie.workbench.common.stunner.bpmn.definition.property.event.signal.SignalRef)3 BPMNGeneralSet (org.kie.workbench.common.stunner.bpmn.definition.property.general.BPMNGeneralSet)3 IntermediateCatchEvent (org.eclipse.bpmn2.IntermediateCatchEvent)2 CatchEventPropertyReader (org.kie.workbench.common.stunner.bpmn.backend.converters.tostunner.properties.CatchEventPropertyReader)2 BaseCatchingIntermediateEvent (org.kie.workbench.common.stunner.bpmn.definition.BaseCatchingIntermediateEvent)2 IntermediateConditionalEvent (org.kie.workbench.common.stunner.bpmn.definition.IntermediateConditionalEvent)2 IntermediateErrorEventCatching (org.kie.workbench.common.stunner.bpmn.definition.IntermediateErrorEventCatching)2 IntermediateTimerEvent (org.kie.workbench.common.stunner.bpmn.definition.IntermediateTimerEvent)2 Documentation (org.kie.workbench.common.stunner.bpmn.definition.property.general.Documentation)2 Name (org.kie.workbench.common.stunner.bpmn.definition.property.general.Name)2