Ejemplo n.º 1
0
 public WalkConditionAnonymousInnerClass2(AbstractInstantiationCmd outerInstance, ProcessDefinitionImpl processDefinition, ActivityExecutionTreeMapping mapping, ExecutionEntity ancestorScopeExecution, PvmScope ancestorScope)
 {
     this.outerInstance          = outerInstance;
     this.processDefinition      = processDefinition;
     this.mapping                = mapping;
     this.ancestorScopeExecution = ancestorScopeExecution;
     this.ancestorScope          = ancestorScope;
 }
Ejemplo n.º 2
0
        /// <summary>
        /// get the activity that is started by the first instruction, if exists;
        /// return null if the first instruction is a start-transition instruction
        /// </summary>
        protected internal virtual ActivityImpl determineFirstActivity(ProcessDefinitionImpl processDefinition, ProcessInstanceModificationBuilderImpl modificationBuilder)
        {
            AbstractProcessInstanceModificationCommand firstInstruction = modificationBuilder.ModificationOperations[0];

            if (firstInstruction is AbstractInstantiationCmd)
            {
                AbstractInstantiationCmd instantiationInstruction = (AbstractInstantiationCmd)firstInstruction;
                CoreModelElement         targetElement            = instantiationInstruction.getTargetElement(processDefinition);

                ensureNotNull(typeof(NotValidException), "Element '" + instantiationInstruction.TargetElementId + "' does not exist in process " + processDefinition.Id, "targetElement", targetElement);

                if (targetElement is ActivityImpl)
                {
                    return((ActivityImpl)targetElement);
                }
                else if (targetElement is TransitionImpl)
                {
                    return((ActivityImpl)((TransitionImpl)targetElement).Destination);
                }
            }

            return(null);
        }
Ejemplo n.º 3
0
 public CallableAnonymousInnerClass(AbstractInstantiationCmd outerInstance, CommandContext commandContext)
 {
     this.outerInstance  = outerInstance;
     this.commandContext = commandContext;
 }
Ejemplo n.º 4
0
 public WalkConditionAnonymousInnerClass(AbstractInstantiationCmd outerInstance, ProcessDefinitionImpl processDefinition, ActivityExecutionTreeMapping mapping)
 {
     this.outerInstance     = outerInstance;
     this.processDefinition = processDefinition;
     this.mapping           = mapping;
 }