示例#1
0
        public virtual MigratingBpmnEventTrigger addBoundaryEvent(ProcessEngine engine, BpmnModelInstance modelInstance, string activityId, string boundaryEventId)
        {
            ModifiableBpmnModelInstance.wrap(modelInstance).activityBuilder(activityId).boundaryEvent(boundaryEventId).timerWithDate(TIMER_DATE).done();

            TimerEventTrigger trigger = new TimerEventTrigger();

            trigger.engine      = engine;
            trigger.activityId  = boundaryEventId;
            trigger.handlerType = TimerExecuteNestedActivityJobHandler.TYPE;

            return(trigger);
        }
示例#2
0
        public virtual MigratingBpmnEventTrigger addEventSubProcess(ProcessEngine engine, BpmnModelInstance modelInstance, string parentId, string subProcessId, string startEventId)
        {
            ModifiableBpmnModelInstance.wrap(modelInstance).addSubProcessTo(parentId).id(subProcessId).triggerByEvent().embeddedSubProcess().startEvent(startEventId).timerWithDuration("PT10M").subProcessDone().done();

            TimerEventTrigger trigger = new TimerEventTrigger();

            trigger.engine      = engine;
            trigger.activityId  = startEventId;
            trigger.handlerType = TimerStartEventSubprocessJobHandler.TYPE;

            return(trigger);
        }
示例#3
0
        public virtual MigratingBpmnEventTrigger addEventSubProcess(ProcessEngine engine, BpmnModelInstance modelInstance, string parentId, string subProcessId, string startEventId)
        {
            ModifiableBpmnModelInstance.wrap(modelInstance).addSubProcessTo(parentId).id(subProcessId).triggerByEvent().embeddedSubProcess().startEvent(startEventId).signal(SIGNAL_NAME).subProcessDone().done();

            SignalTrigger trigger = new SignalTrigger();

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

            return(trigger);
        }
示例#4
0
        public virtual MigratingBpmnEventTrigger addBoundaryEvent(ProcessEngine engine, BpmnModelInstance modelInstance, string activityId, string boundaryEventId)
        {
            ModifiableBpmnModelInstance.wrap(modelInstance).activityBuilder(activityId).boundaryEvent(boundaryEventId).signal(SIGNAL_NAME).done();

            SignalTrigger trigger = new SignalTrigger();

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

            return(trigger);
        }
示例#5
0
        public virtual MigratingBpmnEventTrigger addBoundaryEvent(ProcessEngine engine, BpmnModelInstance modelInstance, string activityId, string boundaryEventId)
        {
            ModifiableBpmnModelInstance.wrap(modelInstance).activityBuilder(activityId).boundaryEvent(boundaryEventId).message(MESSAGE_NAME).done();

            MessageTrigger trigger = new MessageTrigger();

            trigger.engine      = engine;
            trigger.messageName = MESSAGE_NAME;
            trigger.activityId  = boundaryEventId;

            return(trigger);
        }
示例#6
0
        public virtual MigratingBpmnEventTrigger addEventSubProcess(ProcessEngine engine, BpmnModelInstance modelInstance, string parentId, string subProcessId, string startEventId)
        {
            ModifiableBpmnModelInstance.wrap(modelInstance).addSubProcessTo(parentId).id(subProcessId).triggerByEvent().embeddedSubProcess().startEvent(startEventId).condition(VAR_CONDITION).subProcessDone().done();

            ConditionalEventTrigger trigger = new ConditionalEventTrigger();

            trigger.engine        = engine;
            trigger.variableName  = "any";
            trigger.variableValue = "any";
            trigger.activityId    = startEventId;

            return(trigger);
        }
示例#7
0
        public virtual MigratingBpmnEventTrigger addBoundaryEvent(ProcessEngine engine, BpmnModelInstance modelInstance, string activityId, string boundaryEventId)
        {
            ModifiableBpmnModelInstance.wrap(modelInstance).activityBuilder(activityId).boundaryEvent(boundaryEventId).condition(VAR_CONDITION).done();

            ConditionalEventTrigger trigger = new ConditionalEventTrigger();

            trigger.engine        = engine;
            trigger.variableName  = "any";
            trigger.variableValue = "any";
            trigger.activityId    = boundaryEventId;

            return(trigger);
        }