protected synchronized void loadScriptSource() { if (getScriptSource() == null) { DeploymentEntity deployment = Context.getCoreExecutionContext().getDeployment(); String source = ResourceUtil.loadResourceContent(scriptResource, deployment); setScriptSource(source); } }
public DeploymentEntity getDeployment() { return Context .getCommandContext() .getDeploymentManager() .findDeploymentById(getDeploymentId()); }
protected boolean isCurrentContextExecution(BaseDelegateExecution execution) { CoreExecutionContext<?> coreExecutionContext = Context.getCoreExecutionContext(); return coreExecutionContext != null && coreExecutionContext.getExecution() == execution; }
protected boolean isCurrentContextExecution(BaseDelegateExecution execution) { CoreExecutionContext<?> coreExecutionContext = Context.getCoreExecutionContext(); return coreExecutionContext != null && coreExecutionContext.getExecution() == execution; }
protected synchronized void loadScriptSource() { if (getScriptSource() == null) { DeploymentEntity deployment = Context.getCoreExecutionContext().getDeployment(); String source = ResourceUtil.loadResourceContent(scriptResource, deployment); setScriptSource(source); } }
public DeploymentEntity getDeployment() { return Context .getCommandContext() .getDeploymentManager() .findDeploymentById(getDeploymentId()); }
private static void loggContextSwitchDetails(ExecutionEntity execution) { final CoreExecutionContext<? extends CoreExecution> executionContext = Context.getCoreExecutionContext(); // only log for first atomic op: if(executionContext == null ||( executionContext.getExecution() != execution) ) { ProcessApplicationManager processApplicationManager = Context.getProcessEngineConfiguration().getProcessApplicationManager(); LOG.debugNoTargetProcessApplicationFound(execution, processApplicationManager); } }
protected synchronized void loadScriptSource() { if (getScriptSource() == null) { DeploymentEntity deployment = Context.getCoreExecutionContext().getDeployment(); String source = ResourceUtil.loadResourceContent(scriptResource, deployment); setScriptSource(source); } }
public DeploymentEntity getDeployment() { return Context .getCommandContext() .getDeploymentManager() .findDeploymentById(getDeploymentId()); }
private static void loggContextSwitchDetails(ExecutionEntity execution) { final CoreExecutionContext<? extends CoreExecution> executionContext = Context.getCoreExecutionContext(); // only log for first atomic op: if(executionContext == null ||( executionContext.getExecution() != execution) ) { ProcessApplicationManager processApplicationManager = Context.getProcessEngineConfiguration().getProcessApplicationManager(); LOG.debugNoTargetProcessApplicationFound(execution, processApplicationManager); } }
private static void loggContextSwitchDetails(CaseExecutionEntity execution) { final CoreExecutionContext<? extends CoreExecution> executionContext = Context.getCoreExecutionContext(); // only log for first atomic op: if(executionContext == null ||( executionContext.getExecution() != execution) ) { ProcessApplicationManager processApplicationManager = Context.getProcessEngineConfiguration().getProcessApplicationManager(); LOG.debugNoTargetProcessApplicationFoundForCaseExecution(execution, processApplicationManager); } }
private static void loggContextSwitchDetails(CaseExecutionEntity execution) { final CoreExecutionContext<? extends CoreExecution> executionContext = Context.getCoreExecutionContext(); // only log for first atomic op: if(executionContext == null ||( executionContext.getExecution() != execution) ) { ProcessApplicationManager processApplicationManager = Context.getProcessEngineConfiguration().getProcessApplicationManager(); LOG.debugNoTargetProcessApplicationFoundForCaseExecution(execution, processApplicationManager); } }
protected HistoryEvent createHistoryEvent(DmnDecisionEvaluationEvent evaluationEvent) { DmnDecision decisionTable = evaluationEvent.getDecisionResult().getDecision(); if(isDeployedDecisionTable(decisionTable) && historyLevel.isHistoryEventProduced(HistoryEventTypes.DMN_DECISION_EVALUATE, decisionTable)) { CoreExecutionContext<? extends CoreExecution> executionContext = Context.getCoreExecutionContext(); if (executionContext != null) { CoreExecution coreExecution = executionContext.getExecution(); if (coreExecution instanceof ExecutionEntity) { ExecutionEntity execution = (ExecutionEntity) coreExecution; return eventProducer.createDecisionEvaluatedEvt(execution, evaluationEvent); } else if (coreExecution instanceof CaseExecutionEntity) { CaseExecutionEntity caseExecution = (CaseExecutionEntity) coreExecution; return eventProducer.createDecisionEvaluatedEvt(caseExecution, evaluationEvent); } } return eventProducer.createDecisionEvaluatedEvt(evaluationEvent); } else { return null; } }
protected HistoryEvent createHistoryEvent(DmnDecisionEvaluationEvent evaluationEvent) { DmnDecision decisionTable = evaluationEvent.getDecisionResult().getDecision(); if(isDeployedDecisionTable(decisionTable) && historyLevel.isHistoryEventProduced(HistoryEventTypes.DMN_DECISION_EVALUATE, decisionTable)) { CoreExecutionContext<? extends CoreExecution> executionContext = Context.getCoreExecutionContext(); if (executionContext != null) { CoreExecution coreExecution = executionContext.getExecution(); if (coreExecution instanceof ExecutionEntity) { ExecutionEntity execution = (ExecutionEntity) coreExecution; return eventProducer.createDecisionEvaluatedEvt(execution, evaluationEvent); } else if (coreExecution instanceof CaseExecutionEntity) { CaseExecutionEntity caseExecution = (CaseExecutionEntity) coreExecution; return eventProducer.createDecisionEvaluatedEvt(caseExecution, evaluationEvent); } } return eventProducer.createDecisionEvaluatedEvt(evaluationEvent); } else { return null; } }
protected boolean isCurrentContextExecution(BaseDelegateExecution execution) { CoreExecutionContext<?> coreExecutionContext = Context.getCoreExecutionContext(); return coreExecutionContext != null && coreExecutionContext.getExecution() == execution; }
private static void loggContextSwitchDetails(ExecutionEntity execution) { final CoreExecutionContext<? extends CoreExecution> executionContext = Context.getCoreExecutionContext(); // only log for first atomic op: if(executionContext == null ||( executionContext.getExecution() != execution) ) { ProcessApplicationManager processApplicationManager = Context.getProcessEngineConfiguration().getProcessApplicationManager(); LOG.debugNoTargetProcessApplicationFound(execution, processApplicationManager); } }
private static void loggContextSwitchDetails(CaseExecutionEntity execution) { final CoreExecutionContext<? extends CoreExecution> executionContext = Context.getCoreExecutionContext(); // only log for first atomic op: if(executionContext == null ||( executionContext.getExecution() != execution) ) { ProcessApplicationManager processApplicationManager = Context.getProcessEngineConfiguration().getProcessApplicationManager(); LOG.debugNoTargetProcessApplicationFoundForCaseExecution(execution, processApplicationManager); } }
protected HistoryEvent createHistoryEvent(DmnDecisionEvaluationEvent evaluationEvent) { DmnDecision decisionTable = evaluationEvent.getDecisionResult().getDecision(); if(isDeployedDecisionTable(decisionTable) && historyLevel.isHistoryEventProduced(HistoryEventTypes.DMN_DECISION_EVALUATE, decisionTable)) { CoreExecutionContext<? extends CoreExecution> executionContext = Context.getCoreExecutionContext(); if (executionContext != null) { CoreExecution coreExecution = executionContext.getExecution(); if (coreExecution instanceof ExecutionEntity) { ExecutionEntity execution = (ExecutionEntity) coreExecution; return eventProducer.createDecisionEvaluatedEvt(execution, evaluationEvent); } else if (coreExecution instanceof CaseExecutionEntity) { CaseExecutionEntity caseExecution = (CaseExecutionEntity) coreExecution; return eventProducer.createDecisionEvaluatedEvt(caseExecution, evaluationEvent); } } return eventProducer.createDecisionEvaluatedEvt(evaluationEvent); } else { return null; } }