Beispiel #1
0
        public virtual IMigratingBpmnEventTrigger AddBoundaryEvent(IProcessEngine engine,
                                                                   IBpmnModelInstance modelInstance, string activityId, string boundaryEventId)
        {
            ModifiableBpmnModelInstance.Wrap(modelInstance)
            //.ActivityBuilder(activityId)
            //.BoundaryEvent(boundaryEventId)
            ////.Message(MESSAGE_NAME)
            //.Done()
            ;

            var trigger = new MessageTrigger();

            trigger.Engine      = engine;
            trigger.MessageName = MESSAGE_NAME;
            trigger.ActivityId  = boundaryEventId;

            return(trigger);
        }
Beispiel #2
0
        public virtual IMigratingBpmnEventTrigger AddBoundaryEvent(IProcessEngine engine,
                                                                   IBpmnModelInstance modelInstance, string activityId, string boundaryEventId)
        {
            ModifiableBpmnModelInstance.Wrap(modelInstance)
            //.ActivityBuilder(activityId)
            //.BoundaryEvent(boundaryEventId)
            //.Signal(SIGNAL_NAME)
            //.Done()
            ;

            var trigger = new SignalTrigger();

            trigger.engine     = engine;
            trigger.signalName = SIGNAL_NAME;
            trigger.activityId = boundaryEventId;

            return(trigger);
        }
Beispiel #3
0
        public virtual IMigratingBpmnEventTrigger AddBoundaryEvent(IProcessEngine engine,
                                                                   IBpmnModelInstance modelInstance, string activityId, string boundaryEventId)
        {
            ModifiableBpmnModelInstance.Wrap(modelInstance)
            //.ActivityBuilder(activityId)
            //.BoundaryEvent(boundaryEventId)
            //.TimerWithDate(TIMER_DATE)
            //.Done()
            ;

            var trigger = new TimerEventTrigger();

            trigger.Engine      = engine;
            trigger.ActivityId  = boundaryEventId;
            trigger.HandlerType = TimerExecuteNestedActivityJobHandler.TYPE;

            return(trigger);
        }
Beispiel #4
0
        public virtual IMigratingBpmnEventTrigger AddBoundaryEvent(IProcessEngine engine,
                                                                   IBpmnModelInstance modelInstance, string activityId, string boundaryEventId)
        {
            ModifiableBpmnModelInstance.Wrap(modelInstance)
            //.ActivityBuilder(activityId)
            //.BoundaryEvent(boundaryEventId)
            //.Condition(VAR_CONDITION)
            //.Done()
            ;

            var trigger = new ConditionalEventTrigger();

            trigger.Engine        = engine;
            trigger.VariableName  = "any";
            trigger.VariableValue = "any";
            trigger.ActivityId    = boundaryEventId;

            return(trigger);
        }
Beispiel #5
0
        public virtual IMigratingBpmnEventTrigger AddEventSubProcess(IProcessEngine engine,
                                                                     IBpmnModelInstance modelInstance, string parentId, string subProcessId, string startEventId)
        {
            ModifiableBpmnModelInstance.Wrap(modelInstance)
            .AddSubProcessTo(parentId)
            //.Id(subProcessId)
            .TriggerByEvent()
            ////.EmbeddedSubProcess()
            //.StartEvent(startEventId)
            //.Signal(SIGNAL_NAME)
            .SubProcessDone()
            .Done();

            var trigger = new SignalTrigger();

            trigger.engine     = engine;
            trigger.signalName = SIGNAL_NAME;
            trigger.activityId = startEventId;

            return(trigger);
        }
Beispiel #6
0
        public virtual IMigratingBpmnEventTrigger AddEventSubProcess(IProcessEngine engine,
                                                                     IBpmnModelInstance modelInstance, string parentId, string subProcessId, string startEventId)
        {
            ModifiableBpmnModelInstance.Wrap(modelInstance)
            .AddSubProcessTo(parentId)
            //.Id(subProcessId)
            .TriggerByEvent()
            ////.EmbeddedSubProcess()
            //.StartEvent(startEventId)
            ////.Message(MESSAGE_NAME)
            .SubProcessDone()
            .Done();

            var trigger = new MessageTrigger();

            trigger.Engine      = engine;
            trigger.MessageName = MESSAGE_NAME;
            trigger.ActivityId  = startEventId;

            return(trigger);
        }
Beispiel #7
0
        public virtual IMigratingBpmnEventTrigger AddEventSubProcess(IProcessEngine engine,
                                                                     IBpmnModelInstance modelInstance, string parentId, string subProcessId, string startEventId)
        {
            ModifiableBpmnModelInstance.Wrap(modelInstance)
            .AddSubProcessTo(parentId)
            //.Id(subProcessId)
            .TriggerByEvent()
            ////.EmbeddedSubProcess()
            //.StartEvent(startEventId)
            //.TimerWithDuration("PT10M")
            .SubProcessDone()
            .Done();

            var trigger = new TimerEventTrigger();

            trigger.Engine      = engine;
            trigger.ActivityId  = startEventId;
            trigger.HandlerType = TimerStartEventSubprocessJobHandler.TYPE;

            return(trigger);
        }
Beispiel #8
0
        public virtual IMigratingBpmnEventTrigger AddEventSubProcess(IProcessEngine engine,
                                                                     IBpmnModelInstance modelInstance, string parentId, string subProcessId, string startEventId)
        {
            ModifiableBpmnModelInstance.Wrap(modelInstance)
            .AddSubProcessTo(parentId)
            //.Id(subProcessId)
            .TriggerByEvent()
            ////.EmbeddedSubProcess()
            //.StartEvent(startEventId)
            //.Condition(VAR_CONDITION)
            .SubProcessDone()
            .Done();

            var trigger = new ConditionalEventTrigger();

            trigger.Engine        = engine;
            trigger.VariableName  = "any";
            trigger.VariableValue = "any";
            trigger.ActivityId    = startEventId;

            return(trigger);
        }