Package jadex.bpmn.runtime
Class ProcessThreadValueFetcher
- java.lang.Object
-
- jadex.bpmn.runtime.ProcessThreadValueFetcher
-
- All Implemented Interfaces:
IValueFetcher
public class ProcessThreadValueFetcher extends java.lang.Object implements IValueFetcher
Value fetcher for process threads.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
ProcessThreadValueFetcher.IfDefMap
-
Field Summary
Fields Modifier and Type Field Description protected IValueFetcher
fetcher
The fall back value fetcher (if any).protected boolean
flag
The activity selection flag.protected java.util.Map<java.lang.String,java.lang.Boolean>
ifdef
The ifdefined map.protected ProcessThread
thread
The process thread.
-
Constructor Summary
Constructors Constructor Description ProcessThreadValueFetcher(ProcessThread thread, boolean flag, IValueFetcher fetcher)
Create a value fetcher for a given process.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
fetchValue(java.lang.String name)
Fetch a named value.
-
-
-
Field Detail
-
thread
protected ProcessThread thread
The process thread.
-
flag
protected boolean flag
The activity selection flag.
-
fetcher
protected IValueFetcher fetcher
The fall back value fetcher (if any).
-
ifdef
protected java.util.Map<java.lang.String,java.lang.Boolean> ifdef
The ifdefined map.
-
-
Constructor Detail
-
ProcessThreadValueFetcher
public ProcessThreadValueFetcher(ProcessThread thread, boolean flag, IValueFetcher fetcher)
Create a value fetcher for a given process.- Parameters:
thread
- The process thread.flag
- Flag to indicate that values should be fetched from the next activity (otherwise previous activity is used).fetcher
- The fall back fetcher, if any.
-
-
Method Detail
-
fetchValue
public java.lang.Object fetchValue(java.lang.String name)
Fetch a named value.- Specified by:
fetchValue
in interfaceIValueFetcher
- Parameters:
name
- The name.- Returns:
- The fetched value.
-
-