Klasse GroovyScriptWorkflowCondition
java.lang.Object
de.uplanet.lucy.server.workflow.condition.AbstractWorkflowCondition
de.uplanet.lucy.server.workflow.condition.GroovyScriptWorkflowCondition
- Alle implementierten Schnittstellen:
IActivatableWorkflowObject,ICustomConfigurableWorkflowObject,IGroovyConfigurableWorkflowObject,INamedWorkflowObject,INeedWorkflow,INeedWorkflowDirectory,IWorkflowCondition,IWorkflowObject,Serializable
public final class GroovyScriptWorkflowCondition
extends AbstractWorkflowCondition
implements INeedWorkflowDirectory, IGroovyConfigurableWorkflowObject
- Siehe auch:
-
Feldübersicht
Von Schnittstelle geerbte Felder de.uplanet.lucy.server.workflow.IWorkflowObject
GUID_COMPARATOR -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungGet the custom properties.Get the path of the Groovy script.Get the workflow directory.booleanThis flag controls whether compiled Groovy script classes should be cached or not.booleanThis flag controls whether script standard output (printlnetc.)process(IWorkflowEvent p_evt, de.uplanet.lucy.server.workflow.IWorkflowProcessingContext p_wfCtx, de.uplanet.lucy.server.IProcessingContext p_ctx) Process a workflow event in the given context.voidsetCacheCompiledScript(boolean p_bCacheCompiledScript) This flag controls whether compiled Groovy script classes should be cached or not.voidsetCustomProperties(Map<String, String> p_customProperties) Set the custom properties.voidsetDisablePrintOutput(boolean p_bDisablePrintOutput) This flag controls whether script standard output (printlnetc.)voidsetScriptPath(String p_strScript) Set the path of the Groovy script.voidsetWorkflowDirectory(Path p_dir) Set the workflow directory.Von Klasse geerbte Methoden de.uplanet.lucy.server.workflow.condition.AbstractWorkflowCondition
getAfferentTransition, getEfferentTransitions, getGuid, getName, getWorkflow, isActive, setActive, setAfferentTransition, setEfferentTransitions, setName, setWorkflow, toString
-
Konstruktordetails
-
GroovyScriptWorkflowCondition
-
-
Methodendetails
-
getWorkflowDirectory
Beschreibung aus Schnittstelle kopiert:INeedWorkflowDirectoryGet the workflow directory.- Angegeben von:
getWorkflowDirectoryin SchnittstelleINeedWorkflowDirectory- Gibt zurück:
- The workflow directory.
-
setWorkflowDirectory
Beschreibung aus Schnittstelle kopiert:INeedWorkflowDirectorySet the workflow directory.- Angegeben von:
setWorkflowDirectoryin SchnittstelleINeedWorkflowDirectory- Parameter:
p_dir- The workflow directory.
-
getScriptPath
Get the path of the Groovy script.- Gibt zurück:
- The path of the Groovy script.
-
setScriptPath
Set the path of the Groovy script.- Parameter:
p_strScript- The path of the Groovy script.
-
isCacheCompiledScript
public boolean isCacheCompiledScript()Beschreibung aus Schnittstelle kopiert:IGroovyConfigurableWorkflowObjectThis flag controls whether compiled Groovy script classes should be cached or not.The default value is
true.- Angegeben von:
isCacheCompiledScriptin SchnittstelleIGroovyConfigurableWorkflowObject- Gibt zurück:
trueif compiled Groovy script classes should be cached, orfalseotherwise.
-
setCacheCompiledScript
public void setCacheCompiledScript(boolean p_bCacheCompiledScript) Beschreibung aus Schnittstelle kopiert:IGroovyConfigurableWorkflowObjectThis flag controls whether compiled Groovy script classes should be cached or not.- Angegeben von:
setCacheCompiledScriptin SchnittstelleIGroovyConfigurableWorkflowObject- Parameter:
p_bCacheCompiledScript-trueif compiled Groovy script classes should be cached, orfalseotherwise.
-
isDisablePrintOutput
public boolean isDisablePrintOutput()Beschreibung aus Schnittstelle kopiert:IGroovyConfigurableWorkflowObjectThis flag controls whether script standard output (printlnetc.) should be suppressed or not.- Angegeben von:
isDisablePrintOutputin SchnittstelleIGroovyConfigurableWorkflowObject- Gibt zurück:
trueif script standard output should be suppressed, orfalseotherwise.
-
setDisablePrintOutput
public void setDisablePrintOutput(boolean p_bDisablePrintOutput) This flag controls whether script standard output (printlnetc.) should be suppressed or not.- Angegeben von:
setDisablePrintOutputin SchnittstelleIGroovyConfigurableWorkflowObject- Parameter:
p_bDisablePrintOutput-trueif script standard output should be suppressed, orfalseotherwise.
-
getCustomProperties
Beschreibung aus Schnittstelle kopiert:ICustomConfigurableWorkflowObjectGet the custom properties.- Angegeben von:
getCustomPropertiesin SchnittstelleICustomConfigurableWorkflowObject- Gibt zurück:
- The custom properties.
-
setCustomProperties
Beschreibung aus Schnittstelle kopiert:ICustomConfigurableWorkflowObjectSet the custom properties.- Angegeben von:
setCustomPropertiesin SchnittstelleICustomConfigurableWorkflowObject- Parameter:
p_customProperties- The custom properties to be set (must not benull).
-
process
public WorkflowTransition[] process(IWorkflowEvent p_evt, de.uplanet.lucy.server.workflow.IWorkflowProcessingContext p_wfCtx, de.uplanet.lucy.server.IProcessingContext p_ctx) throws Exception Beschreibung aus Schnittstelle kopiert:IWorkflowConditionProcess a workflow event in the given context.The workflow engine will follow the resulting transitions in the order they were returned in the array.
Normally, a workflow condition should return
nullor an empty array if it is notactive.- Angegeben von:
processin SchnittstelleIWorkflowCondition- Parameter:
p_evt- The event to be processed.p_wfCtx- The workflow processing context.p_ctx- The processing context.- Gibt zurück:
- The efferent transitions, or an empty array, or
null. - Löst aus:
Exception- If an error occurred.
-