Esempio n. 1
0
 protected internal virtual void InstantiateConcurrent(ExecutionEntity ancestorScopeExecution,
                                                       IList <IPvmActivity> parentFlowScopes, CoreModelElement targetElement)
 {
     if (targetElement is IPvmTransition)
     {
         ancestorScopeExecution.ExecuteActivitiesConcurrent(parentFlowScopes, null, (IPvmTransition)targetElement,
                                                            variables, variablesLocal, skipCustomListeners, skipIoMappings);
     }
     else if (targetElement is IPvmActivity)
     {
         ancestorScopeExecution.ExecuteActivitiesConcurrent(parentFlowScopes, (IPvmActivity)targetElement, null,
                                                            variables, variablesLocal, skipCustomListeners, skipIoMappings);
     }
     else
     {
         throw new ProcessEngineException("Cannot instantiate element " + targetElement);
     }
 }