public virtual void execute(TimerJobConfiguration configuration, ExecutionEntity execution, CommandContext commandContext, string tenantId) { string activityId = configuration.TimerElementKey; ActivityImpl eventSubprocessActivity = execution.getProcessDefinition().findActivity(activityId); if (eventSubprocessActivity != null) { execution.executeEventHandlerActivity(eventSubprocessActivity); } else { throw new ProcessEngineException("Error while triggering event subprocess using timer start event: cannot find activity with id '" + configuration + "'."); } }
protected internal virtual string getProcessDefinitionTenantId(ExecutionEntity execution) { ProcessDefinitionEntity processDefinition = (ProcessDefinitionEntity)execution.getProcessDefinition(); return(processDefinition.TenantId); }
protected internal override long?getProcessDefinitionPriority(ExecutionEntity execution, ExternalTaskActivityBehavior param) { return(getProcessDefinedPriority(execution.getProcessDefinition(), BpmnParse.PROPERTYNAME_TASK_PRIORITY, execution, "")); }