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); }
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); }
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); }
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); }
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); }
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); }
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); }
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); }