private IAuthorizationHandler GetAuthorizationHandler(ProcessDefinitionImpl processDefinition) { IAuthorizationHandler authorizationHandler = null; DelegationImpl delegation = processDefinition.AuthorizationDelegation; if (delegation != null) { authorizationHandler = (IAuthorizationHandler)delegation.GetDelegate(); } return(authorizationHandler); }
public void DelegateFork(DelegationImpl delegation, ExecutionContextImpl executionContext) { try { // delegate the fork IForkHandler forker = (IForkHandler)delegation.GetDelegate(); executionContext.SetConfiguration(ParseConfiguration(delegation)); forker.Fork(executionContext); } catch (Exception t) { HandleException(delegation, executionContext, t); } }
public String DelegateAssignment(DelegationImpl delegation, ExecutionContextImpl executionContext) { String actorId = null; try { IAssignmentHandler assigner = (IAssignmentHandler)delegation.GetDelegate(); executionContext.SetConfiguration(ParseConfiguration(delegation)); actorId = assigner.SelectActor(executionContext); } catch (Exception t) { HandleException(delegation, executionContext, t); } return(actorId); }
public bool DelegateJoin(DelegationImpl delegation, ExecutionContextImpl executionContext) { bool reactivateParent = false; try { IJoinHandler joiner = (IJoinHandler)delegation.GetDelegate(); executionContext.SetConfiguration(ParseConfiguration(delegation)); reactivateParent = joiner.Join(executionContext); } catch (Exception t) { HandleException(delegation, executionContext, t); } return(reactivateParent); }
public String DelegateAssignment(DelegationImpl delegation, ExecutionContextImpl executionContext) { String actorId = null; try { IAssignmentHandler assigner = (IAssignmentHandler) delegation.GetDelegate(); executionContext.SetConfiguration(ParseConfiguration(delegation)); actorId = assigner.SelectActor(executionContext); } catch (Exception t) { HandleException(delegation, executionContext, t); } return actorId; }
public bool DelegateJoin(DelegationImpl delegation, ExecutionContextImpl executionContext) { bool reactivateParent = false; try { IJoinHandler joiner = (IJoinHandler) delegation.GetDelegate(); executionContext.SetConfiguration(ParseConfiguration(delegation)); reactivateParent = joiner.Join(executionContext); } catch (Exception t) { HandleException(delegation, executionContext, t); } return reactivateParent; }
public void DelegateFork(DelegationImpl delegation, ExecutionContextImpl executionContext) { try { // delegate the fork IForkHandler forker = (IForkHandler) delegation.GetDelegate(); executionContext.SetConfiguration(ParseConfiguration(delegation)); forker.Fork(executionContext); } catch (Exception t) { HandleException(delegation, executionContext, t); } }
public Object[] DelegateProcessTermination(DelegationImpl delegation, ExecutionContextImpl executionContext) { Object[] completionData = new Object[2]; try { IProcessInvocationHandler processInvoker = (IProcessInvocationHandler) delegation.GetDelegate(); log.Debug("collecting results from the sub-process..."); executionContext.SetConfiguration(ParseConfiguration(delegation)); completionData[0] = processInvoker.CollectResults(executionContext); completionData[1] = processInvoker.GetCompletionTransitionName(executionContext); } catch (Exception t) { HandleException(delegation, executionContext, t); } return completionData; }
public Object[] DelegateProcessInvocation(DelegationImpl delegation, ExecutionContextImpl executionContext) { Object[] invocationData = new Object[2]; try { IProcessInvocationHandler processInvoker = (IProcessInvocationHandler) delegation.GetDelegate(); log.Debug("requesting the attributeValues from the process invoker..."); executionContext.SetConfiguration(ParseConfiguration(delegation)); invocationData[0] = processInvoker.GetStartTransitionName(executionContext); invocationData[1] = processInvoker.GetStartAttributeValues(executionContext); log.Debug("process invoker specified transition '" + invocationData[0] + "' and supplied attributeValues '" + invocationData[1] + "'"); } catch (Exception t) { HandleException(delegation, executionContext, t); } return invocationData; }
public Object[] DelegateProcessTermination(DelegationImpl delegation, ExecutionContextImpl executionContext) { Object[] completionData = new Object[2]; try { IProcessInvocationHandler processInvoker = (IProcessInvocationHandler)delegation.GetDelegate(); log.Debug("collecting results from the sub-process..."); executionContext.SetConfiguration(ParseConfiguration(delegation)); completionData[0] = processInvoker.CollectResults(executionContext); completionData[1] = processInvoker.GetCompletionTransitionName(executionContext); } catch (Exception t) { HandleException(delegation, executionContext, t); } return(completionData); }
public Object[] DelegateProcessInvocation(DelegationImpl delegation, ExecutionContextImpl executionContext) { Object[] invocationData = new Object[2]; try { IProcessInvocationHandler processInvoker = (IProcessInvocationHandler)delegation.GetDelegate(); log.Debug("requesting the attributeValues from the process invoker..."); executionContext.SetConfiguration(ParseConfiguration(delegation)); invocationData[0] = processInvoker.GetStartTransitionName(executionContext); invocationData[1] = processInvoker.GetStartAttributeValues(executionContext); log.Debug("process invoker specified transition '" + invocationData[0] + "' and supplied attributeValues '" + invocationData[1] + "'"); } catch (Exception t) { HandleException(delegation, executionContext, t); } return(invocationData); }