示例#1
0
        protected internal virtual void initializeDefinitionKey(CmmnElement element, CmmnActivity activity, CmmnHandlerContext context, BaseCallableElement callableElement)
        {
            ExpressionManager      expressionManager     = context.ExpressionManager;
            string                 definitionKey         = getDefinitionKey(element, activity, context);
            ParameterValueProvider definitionKeyProvider = createParameterValueProvider(definitionKey, expressionManager);

            callableElement.DefinitionKeyValueProvider = definitionKeyProvider;
        }
示例#2
0
        protected internal virtual void initializeVersion(CmmnElement element, CmmnActivity activity, CmmnHandlerContext context, BaseCallableElement callableElement)
        {
            ExpressionManager      expressionManager = context.ExpressionManager;
            string                 version           = getVersion(element, activity, context);
            ParameterValueProvider versionProvider   = createParameterValueProvider(version, expressionManager);

            callableElement.VersionValueProvider = versionProvider;
        }
示例#3
0
        public override long?getSpecificPriority(ExecutionEntity execution, ExternalTaskActivityBehavior param, string jobDefinitionId)
        {
            ParameterValueProvider priorityProvider = param.PriorityValueProvider;

            if (priorityProvider != null)
            {
                return(evaluateValueProvider(priorityProvider, execution, ""));
            }
            return(null);
        }
示例#4
0
 protected internal virtual long?getActivityPriority <T1>(ExecutionEntity execution, JobDeclaration <T1> jobDeclaration)
 {
     if (jobDeclaration != null)
     {
         ParameterValueProvider priorityProvider = jobDeclaration.JobPriorityProvider;
         if (priorityProvider != null)
         {
             return(evaluateValueProvider(priorityProvider, execution, describeContext(jobDeclaration, execution)));
         }
     }
     return(null);
 }
示例#5
0
        protected internal override long?getSpecificPriority <T1>(ExecutionEntity execution, JobDeclaration <T1> param, string jobDefinitionId)
        {
            long?specificPriority             = null;
            JobDefinitionEntity jobDefinition = getJobDefinitionFor(jobDefinitionId);

            if (jobDefinition != null)
            {
                specificPriority = jobDefinition.OverridingJobPriority;
            }

            if (specificPriority == null)
            {
                ParameterValueProvider priorityProvider = param.JobPriorityProvider;
                if (priorityProvider != null)
                {
                    specificPriority = evaluateValueProvider(priorityProvider, execution, describeContext(param, execution));
                }
            }
            return(specificPriority);
        }
示例#6
0
	  public InputParameter(string name, ParameterValueProvider valueProvider) : base(name, valueProvider)
	  {
	  }
示例#7
0
 public ExternalTaskActivityBehavior(ParameterValueProvider topicName, ParameterValueProvider paramValueProvider)
 {
     this.topicNameValueProvider = topicName;
     this.priorityValueProvider  = paramValueProvider;
 }
示例#8
0
 public IoParameter(string name, ParameterValueProvider valueProvider)
 {
     this.name          = name;
     this.valueProvider = valueProvider;
 }