Ejemplo n.º 1
0
            public virtual MigratingBpmnEventTrigger inContextOf(string newActivityId)
            {
                ConditionalEventTrigger newTrigger = new ConditionalEventTrigger();

                newTrigger.activityId    = newActivityId;
                newTrigger.engine        = engine;
                newTrigger.variableName  = variableName;
                newTrigger.variableValue = variableValue;
                return(newTrigger);
            }
Ejemplo n.º 2
0
            public virtual IMigratingBpmnEventTrigger InContextOf(string newActivityId)
            {
                var newTrigger = new ConditionalEventTrigger();

                newTrigger.ActivityId    = newActivityId;
                newTrigger.Engine        = Engine;
                newTrigger.VariableName  = VariableName;
                newTrigger.VariableValue = VariableValue;
                return(newTrigger);
            }
Ejemplo n.º 3
0
        private static void AttachActionToTarget(string text, DependencyObject d)
        {
            var actionMessage = Parser.CreateMessage(d, text);

            var trigger = new ConditionalEventTrigger
            {
                EventName = "MouseLeftButtonUp",
                Condition = e => DoubleClickCatcher.IsDoubleClick(d, e)
            };
            trigger.Actions.Add(actionMessage);

            Interaction.GetTriggers(d).Add(trigger);
        }
Ejemplo n.º 4
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);
        }
Ejemplo n.º 5
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);
        }
Ejemplo n.º 6
0
        static void AttachActionToTarget(string text, DependencyObject d)
        {
            var actionMessage = Parser.CreateMessage(d, text);

            var trigger = new ConditionalEventTrigger
            {
                EventName = "MouseLeftButtonUp",
                Condition = e => DoubleClickCatcher.IsDoubleClick(d, e)
            };

            trigger.Actions.Add(actionMessage);

            Interaction.GetTriggers(d).Add(trigger);
        }
Ejemplo n.º 7
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);
        }
Ejemplo n.º 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);
        }