public class ModuleInterpreter
extends java.lang.Object
| Modifier and Type | Field and Description | 
|---|---|
| protected static java.lang.String | CONDITIONAL_EVENT__CONDITION | 
| protected RuntimeToPersistentConverter | converterRuntime-to-persistent converter. | 
| protected E | descProcess description. | 
| protected static java.lang.String | ERROR_EVENT__ERROR_CODE | 
| protected static java.lang.String | ERROR_EVENT__ERROR_CODE_REF | 
| protected ExecutionContext | executionContextExecution context. | 
| protected VariableInitializator | initializatorVariable initializator. | 
| protected ModelInstance | modelInstanceModel instance. | 
| protected ModelProvider | modelProviderModel provider service. | 
| protected ModuleInstance | moduleInstanceModule instance. | 
| protected ProcessInterpreterContext | picProcess interpreter context. | 
| protected ProcessInstance | processInstanceProcess instance. | 
| Constructor and Description | 
|---|
| ModuleInterpreter(ModuleInstance moduleInstance,
                 ProcessInterpreterContext pic)Creates new instance. | 
| Modifier and Type | Method and Description | 
|---|---|
| protected boolean | handleEscalationEventFlow(com.whitestein.lsps.model.ExecutableModelElement element,
                         com.whitestein.lsps.model.EscalationEventFlow flow,
                         ExecutionContext executionContext,
                         Escalation escalation,
                         boolean consumeEscalation) | 
| void | init(boolean isStartedByInlinedEvent,
    java.lang.Exception startedByException)Initializes the context state, sets all context variables to their initial values and creates
 a new token at the start of the process. | 
| void | init(com.whitestein.lsps.model.ProcessDescription processDescription)Initializes a process description. | 
| void | proceed(ProcessingType processingType)Moves the process state by one step forward. | 
| void | terminate(TerminationReason reason)Terminates the process with the given reason. | 
protected static final java.lang.String CONDITIONAL_EVENT__CONDITION
protected static final java.lang.String ERROR_EVENT__ERROR_CODE
protected static final java.lang.String ERROR_EVENT__ERROR_CODE_REF
protected final ProcessInstance processInstance
protected final ModuleInstance moduleInstance
protected final ModelInstance modelInstance
protected final ProcessInterpreterContext pic
protected final ModelProvider modelProvider
protected final E desc
protected final ExecutionContext executionContext
protected final RuntimeToPersistentConverter converter
protected final VariableInitializator initializator
public ModuleInterpreter(ModuleInstance moduleInstance, ProcessInterpreterContext pic)
moduleInstance - pic - public void init(boolean isStartedByInlinedEvent,
                 java.lang.Exception startedByException)
          throws ErrorException
init in interface ProcessInterpreterErrorExceptionpublic void init(com.whitestein.lsps.model.ProcessDescription processDescription)
          throws ErrorException
processDescription - ErrorExceptionpublic void proceed(ProcessingType processingType) throws ErrorException
ProcessInterpreterErrorException - when a BPMN error occurspublic void terminate(TerminationReason reason) throws ErrorException
ProcessInterpreterterminate in interface ProcessInterpreterErrorExceptionprotected boolean handleEscalationEventFlow(com.whitestein.lsps.model.ExecutableModelElement element,
                                            com.whitestein.lsps.model.EscalationEventFlow flow,
                                            ExecutionContext executionContext,
                                            Escalation escalation,
                                            boolean consumeEscalation)
                                     throws ErrorException
ErrorExceptionCopyright © 2007-2020 Whitestein Technologies. All Rights Reserved.