protected internal virtual IProcessApplicationReference GetPaReference(
            ProcessApplicationIdentifier processApplicationIdentifier)
        {
            if (processApplicationIdentifier.Reference != null)
            {
                return(processApplicationIdentifier.Reference);
            }
            //if (processApplicationIdentifier.ProcessApplication != null)
            //    return processApplicationIdentifier.ProcessApplication.Reference;
            if (processApplicationIdentifier.Name != null)
            {
                //var runtimeContainerDelegate = RuntimeContainerDelegateFields.INSTANCE.get();
                //var reference = runtimeContainerDelegate.getDeployedProcessApplication(processApplicationIdentifier.Name);

                //if (reference == null)
                //    throw Log.PaWithNameNotRegistered(processApplicationIdentifier.Name);
                //return reference;
                throw new NotImplementedException();
            }
            throw Log.CannotReolvePa(processApplicationIdentifier);
        }
Example #2
0
 public static void set(ProcessApplicationIdentifier identifier)
 {
     currentProcessApplication.set(identifier);
 }
Example #3
0
 public virtual ProcessEngineException cannotReolvePa(ProcessApplicationIdentifier processApplicationIdentifier)
 {
     return(new ProcessEngineException(exceptionMessage("021", "Cannot resolve process application based on {}", processApplicationIdentifier)));
 }