Interface Variables
-
Method Summary
Modifier and TypeMethodDescriptiondefault Target
createTarget
(String organizationIdentifierValue, String endpointIdentifierValue, String endpointAddress) Creates a newTarget
object.createTarget
(String organizationIdentifierValue, String endpointIdentifierValue, String endpointAddress, String correlationKey) Creates a newTarget
object.default Targets
createTargets
(Target... targets) Creates a new target list.createTargets
(List<? extends Target> targets) Creates a new target list.default String
Retrieves execution variableBpmnExecutionVariables.ALTERNATIVE_BUSINESS_KEY
default Boolean
getBoolean
(String variableName) RetrievesBoolean
execution variable with the given variableNamedefault Boolean
getBooleanLocal
(String variableName) RetrievesBoolean
local variable with the given variableNamedefault byte[]
getByteArray
(String variableName) Retrievesbyte[]
execution variable with the given variableNamedefault byte[]
getByteArrayLocal
(String variableName) Retrievesbyte[]
local variable with the given variableNameList
<org.hl7.fhir.r4.model.Task> default Date
RetrievesDate
execution variable with the given variableNamedefault Date
getDateLocal
(String variableName) RetrievesDate
local variable with the given variableNamedefault Double
RetrievesDouble
execution variable with the given variableNamedefault Double
getDoubleLocal
(String variableName) RetrievesDouble
local variable with the given variableName<R extends org.hl7.fhir.r4.model.Resource>
RgetFhirResource
(String variableName) Retrieves FHIRResource
execution variable with the given variableName<R extends org.hl7.fhir.r4.model.Resource>
List<R> getFhirResourceList
(String variableName) Retrieves FHIRResource
list execution variable with the given variableName<R extends org.hl7.fhir.r4.model.Resource>
List<R> getFhirResourceListLocal
(String variableName) Retrieves FHIRResource
list local variable with the given variableName<R extends org.hl7.fhir.r4.model.Resource>
RgetFhirResourceLocal
(String variableName) Retrieves FHIRResource
local variable with the given variableNamedefault File
RetrievesFile
execution variable with the given variableNamedefault File
getFileLocal
(String variableName) RetrievesFile
local variable with the given variableNamedefault Integer
getInteger
(String variableName) RetrievesInteger
execution variable with the given variableNamedefault Integer
getIntegerLocal
(String variableName) RetrievesInteger
local variable with the given variableNameorg.hl7.fhir.r4.model.QuestionnaireResponse
org.hl7.fhir.r4.model.Task
Returns the latestTask
received by this process or subprocess via a intermediate message catch event or message receive task.default Long
RetrievesLong
execution variable with the given variableNamedefault Long
getLongLocal
(String variableName) RetrievesLong
local variable with the given variableNamedefault Number
RetrievesNumber
execution variable with the given variableNamedefault Number
getNumberLocal
(String variableName) RetrievesNumber
local variable with the given variableNamedefault Short
RetrievesShort
execution variable with the given variableNamedefault Short
getShortLocal
(String variableName) RetrievesShort
local variable with the given variableNameorg.hl7.fhir.r4.model.Task
Returns theTask
associated with the message start event of the process.default String
RetrievesString
execution variable with the given variableNamedefault String
getStringLocal
(String variableName) RetrievesString
local variable with the given variableNameRetrieves execution variableBpmnExecutionVariables.TARGET
Retrieves execution variableBpmnExecutionVariables.TARGETS
List
<org.hl7.fhir.r4.model.Task> getTasks()
<T> T
getVariable
(String variableName) Retrieves execution variable with the given variableName<T> T
getVariableLocal
(String variableName) Retrieves local variable with the given variableNamevoid
setAlternativeBusinessKey
(String alternativeBusinessKey) Sets execution variableBpmnExecutionVariables.ALTERNATIVE_BUSINESS_KEY
to the given alternativeBusinessKeyvoid
setBoolean
(String variableName, Boolean value) Sets execution variable with the given variableName to the givenBoolean
void
setBooleanLocal
(String variableName, Boolean value) Sets local variable with the given variableName to the givenBoolean
void
setByteArray
(String variableName, byte[] value) Sets execution variable with the given variableName to the givenbyte[]
void
setByteArrayLocal
(String variableName, byte[] value) Sets local variable with the given variableName to the givenbyte[]
void
Sets execution variable with the given variableName to the givenDate
void
setDateLocal
(String variableName, Date value) Sets local variable with the given variableName to the givenDate
void
Sets execution variable with the given variableName to the givenDouble
void
setDoubleLocal
(String variableName, Double value) Sets local variable with the given variableName to the givenDouble
void
setFhirResource
(String variableName, org.hl7.fhir.r4.model.Resource resource) Sets execution variable with the given variableName to the given FHIRResource
void
setFhirResourceList
(String variableName, List<? extends org.hl7.fhir.r4.model.Resource> resources) Sets execution variable with the given variableName to the given FHIRResource
listvoid
setFhirResourceListLocal
(String variableName, List<? extends org.hl7.fhir.r4.model.Resource> resources) Sets local variable with the given variableName to the given FHIRResource
listvoid
setFhirResourceLocal
(String variableName, org.hl7.fhir.r4.model.Resource resource) Sets local variable with the given variableName to the given FHIRResource
void
Sets execution variable with the given variableName to the givenFile
void
setFileLocal
(String variableName, File value) Sets local variable with the given variableName to the givenFile
void
setInteger
(String variableName, Integer value) Sets execution variable with the given variableName to the givenInteger
void
setIntegerLocal
(String variableName, Integer value) Sets local variable with the given variableName to the givenInteger
void
setJsonVariable
(String variableName, Object value) UsesObjectMapper
to serialize the given value into json.void
setJsonVariableLocal
(String variableName, Object value) UsesObjectMapper
to serialize the given value into json.void
Sets execution variable with the given variableName to the givenLong
void
setLongLocal
(String variableName, Long value) Sets local variable with the given variableName to the givenLong
void
Sets execution variable with the given variableName to the givenNumber
void
setNumberLocal
(String variableName, Number value) Sets local variable with the given variableName to the givenNumber
void
Sets execution variable with the given variableName to the givenShort
void
setShortLocal
(String variableName, Short value) Sets local variable with the given variableName to the givenShort
void
Sets execution variable with the given variableName to the givenString
void
setStringLocal
(String variableName, String value) Sets local variable with the given variableName to the givenString
void
Sets execution variableBpmnExecutionVariables.TARGET
void
setTargets
(Targets targets) Sets execution variableBpmnExecutionVariables.TARGETS
.void
updateTask
(org.hl7.fhir.r4.model.Task task) Does nothing if the given task isnull
.
-
Method Details
-
getBusinessKey
String getBusinessKey()- Returns:
- not
null
, business key of the current process instance
-
getCurrentActivityId
String getCurrentActivityId()- Returns:
- not
null
, id of the current activity
-
getProcessDefinitionId
String getProcessDefinitionId()- Returns:
- not
null
, id of the current process definition
-
getActivityInstanceId
String getActivityInstanceId()- Returns:
- not
null
, id of the current activity instance
-
setAlternativeBusinessKey
Sets execution variableBpmnExecutionVariables.ALTERNATIVE_BUSINESS_KEY
to the given alternativeBusinessKey- Parameters:
alternativeBusinessKey
- may benull
- See Also:
-
getAlternativeBusinessKey
Retrieves execution variableBpmnExecutionVariables.ALTERNATIVE_BUSINESS_KEY
- Returns:
- may be
null
- See Also:
-
createTarget
Target createTarget(String organizationIdentifierValue, String endpointIdentifierValue, String endpointAddress, String correlationKey) Creates a newTarget
object.A not
null
correlationKey should be used if return messages i.e. Task resources from multiple organizations with the same message-name are expected in a following multi instance message receive task or intermediate message catch event in a multi instance subprocess.
Note: The correlationKey needs to be set as aBpmnExecutionVariables.CORRELATION_KEY
variable in the message receive task or intermediate message catch event of a subprocess before incoming messages i.e. Task resources can be correlated. Within a BPMN file this can be accomplished by setting an input variable with name:BpmnExecutionVariables.CORRELATION_KEY
, type:string or expression
, and value:${target.correlationKey}
.A not
null
correlationKey should also be used when sending a message i.e. Task resource back to an organization waiting for multiple returns.- Parameters:
organizationIdentifierValue
- notnull
endpointIdentifierValue
- notnull
endpointAddress
- notnull
correlationKey
- notnull
if used for sending multiple messages and multiple messages with the same message-name are expected in return- Returns:
- new
Target
object - See Also:
-
createTarget
default Target createTarget(String organizationIdentifierValue, String endpointIdentifierValue, String endpointAddress) Creates a newTarget
object. SeecreateTarget(String, String, String, String)
for sending a correlation-key for 1:n or n:1 relationships.- Parameters:
organizationIdentifierValue
- notnull
endpointIdentifierValue
- notnull
endpointAddress
- notnull
- Returns:
- new
Target
object - See Also:
-
setTarget
Sets execution variableBpmnExecutionVariables.TARGET
- Parameters:
target
- may benull
- Throws:
IllegalArgumentException
- if the given target object is not supported, meaning the object was not created by thisVariables
implementation- See Also:
-
getTarget
Target getTarget()Retrieves execution variableBpmnExecutionVariables.TARGET
- Returns:
- Execution variable
BpmnExecutionVariables.TARGET
, may benull
-
createTargets
Creates a new target list. Use${targets.entries}
as a multi instance collection andtarget
as the element variable to loop over this list in a multi instance task or subprocess.- Parameters:
targets
-Target
objects to incorporate into the created list- Returns:
- a new target list
- Throws:
IllegalArgumentException
- if one of the given target objects is not supported, meaning the object was not created by thisVariables
implementation- See Also:
-
createTargets
Creates a new target list. Use${targets.entries}
as a multi instance collection andtarget
as the element variable to loop over this list in a multi instance task or subprocess.- Parameters:
targets
-Target
objects to incorporate into the created list, may benull
- Returns:
- a new target list
- Throws:
IllegalArgumentException
- if one of the given target objects is not supported, meaning the object was not created by thisVariables
implementation- See Also:
-
setTargets
Sets execution variableBpmnExecutionVariables.TARGETS
. Use${targets.entries}
as a multi instance collection and- Parameters:
targets
- may benull
- See Also:
-
getTargets
Targets getTargets()Retrieves execution variableBpmnExecutionVariables.TARGETS
- Returns:
- Execution variable
BpmnExecutionVariables.TARGETS
, may benull
- See Also:
-
setFhirResourceList
void setFhirResourceList(String variableName, List<? extends org.hl7.fhir.r4.model.Resource> resources) Sets execution variable with the given variableName to the given FHIRResource
list- Parameters:
variableName
- notnull
resources
-
-
getFhirResourceList
Retrieves FHIRResource
list execution variable with the given variableName- Type Parameters:
R
- FHIR resource type- Parameters:
variableName
- notnull
- Returns:
- list of FHIR resources from execution variables for the given variableName, may be
null
-
setFhirResource
Sets execution variable with the given variableName to the given FHIRResource
- Parameters:
variableName
- notnull
resource
- may benull
-
getFhirResource
Retrieves FHIRResource
execution variable with the given variableName- Type Parameters:
R
- FHIR resource type- Parameters:
variableName
- notnull
- Returns:
- value from execution variables for the given variableName, may be
null
-
getStartTask
org.hl7.fhir.r4.model.Task getStartTask()Returns theTask
associated with the message start event of the process.- Returns:
Task
that started the process instance, notnull
- See Also:
-
getLatestTask
org.hl7.fhir.r4.model.Task getLatestTask()Returns the latestTask
received by this process or subprocess via a intermediate message catch event or message receive task.- Returns:
- Last received
Task
of the current process or subprocess, notnull
- See Also:
-
getTasks
List<org.hl7.fhir.r4.model.Task> getTasks()- Returns:
- All
Task
resources received - See Also:
-
getCurrentTasks
List<org.hl7.fhir.r4.model.Task> getCurrentTasks()- Returns:
- All
Task
resources received by the current process or subprocess - See Also:
-
updateTask
void updateTask(org.hl7.fhir.r4.model.Task task) Does nothing if the given task isnull
. Forces an update to the Task list variable used internally to track all received Task resources if the given task object is already part of this list.- Parameters:
task
- may benull
- See Also:
-
getLatestReceivedQuestionnaireResponse
org.hl7.fhir.r4.model.QuestionnaireResponse getLatestReceivedQuestionnaireResponse()- Returns:
- Last received
QuestionnaireResponse
,null
if nothing received yet
-
setJsonVariable
UsesObjectMapper
to serialize the given value into json. Value class needs annotations likeJsonCreator
,JsonProperty
andJsonGetter
- Parameters:
variableName
- notnull
value
- may be null- See Also:
-
getVariable
Retrieves execution variable with the given variableName- Type Parameters:
T
- target variable type- Parameters:
variableName
- notnull
- Returns:
- value from execution variables for the given variableName, may be
null
- Throws:
ClassCastException
- if the returned variable can not be cast to <T>- See Also:
-
setInteger
Sets execution variable with the given variableName to the givenInteger
- Parameters:
variableName
- notnull
value
- may benull
- See Also:
-
getInteger
RetrievesInteger
execution variable with the given variableName- Parameters:
variableName
- notnull
- Returns:
- value from execution variables for the given variableName, may be
null
- Throws:
ClassCastException
- if the stored value is not anInteger
- See Also:
-
setString
Sets execution variable with the given variableName to the givenString
- Parameters:
variableName
- notnull
value
- may benull
- See Also:
-
getString
RetrievesString
execution variable with the given variableName- Parameters:
variableName
- notnull
- Returns:
- value from execution variables for the given variableName, may be
null
- Throws:
ClassCastException
- if the stored value is not aString
- See Also:
-
setBoolean
Sets execution variable with the given variableName to the givenBoolean
- Parameters:
variableName
- notnull
value
- may benull
- See Also:
-
getBoolean
RetrievesBoolean
execution variable with the given variableName- Parameters:
variableName
- notnull
- Returns:
- value from execution variables for the given variableName, may be
null
- Throws:
ClassCastException
- if the stored value is not aBoolean
- See Also:
-
setByteArray
Sets execution variable with the given variableName to the givenbyte[]
- Parameters:
variableName
- notnull
value
- may benull
- See Also:
-
getByteArray
Retrievesbyte[]
execution variable with the given variableName- Parameters:
variableName
- notnull
- Returns:
- value from execution variables for the given variableName, may be
null
- Throws:
ClassCastException
- if the stored value is not abyte[]
- See Also:
-
setDate
Sets execution variable with the given variableName to the givenDate
- Parameters:
variableName
- notnull
value
- may benull
- See Also:
-
getDate
RetrievesDate
execution variable with the given variableName- Parameters:
variableName
- notnull
- Returns:
- value from execution variables for the given variableName, may be
null
- Throws:
ClassCastException
- if the stored value is not aDate
- See Also:
-
setLong
Sets execution variable with the given variableName to the givenLong
- Parameters:
variableName
- notnull
value
- may benull
- See Also:
-
getLong
RetrievesLong
execution variable with the given variableName- Parameters:
variableName
- notnull
- Returns:
- value from execution variables for the given variableName, may be
null
- Throws:
ClassCastException
- if the stored value is not aLong
- See Also:
-
setShort
Sets execution variable with the given variableName to the givenShort
- Parameters:
variableName
- notnull
value
- may benull
- See Also:
-
getShort
RetrievesShort
execution variable with the given variableName- Parameters:
variableName
- notnull
- Returns:
- value from execution variables for the given variableName, may be
null
- Throws:
ClassCastException
- if the stored value is not aShort
- See Also:
-
setDouble
Sets execution variable with the given variableName to the givenDouble
- Parameters:
variableName
- notnull
value
- may benull
- See Also:
-
getDouble
RetrievesDouble
execution variable with the given variableName- Parameters:
variableName
- notnull
- Returns:
- value from execution variables for the given variableName, may be
null
- Throws:
ClassCastException
- if the stored value is not aDouble
- See Also:
-
setNumber
Sets execution variable with the given variableName to the givenNumber
- Parameters:
variableName
- notnull
value
- may benull
- See Also:
-
getNumber
RetrievesNumber
execution variable with the given variableName- Parameters:
variableName
- notnull
- Returns:
- value from execution variables for the given variableName, may be
null
- Throws:
ClassCastException
- if the stored value is not aNumber
- See Also:
-
setFile
Sets execution variable with the given variableName to the givenFile
- Parameters:
variableName
- notnull
value
- may benull
- See Also:
-
getFile
RetrievesFile
execution variable with the given variableName- Parameters:
variableName
- notnull
- Returns:
- value from execution variables for the given variableName, may be
null
- Throws:
ClassCastException
- if the stored value is not aFile
- See Also:
-
setIntegerLocal
Sets local variable with the given variableName to the givenInteger
- Parameters:
variableName
- notnull
value
- may benull
- See Also:
-
getIntegerLocal
RetrievesInteger
local variable with the given variableName- Parameters:
variableName
- notnull
- Returns:
- value from execution variables for the given variableName, may be
null
- Throws:
ClassCastException
- if the stored value is not anInteger
- See Also:
-
setStringLocal
Sets local variable with the given variableName to the givenString
- Parameters:
variableName
- notnull
value
- may benull
- See Also:
-
getStringLocal
RetrievesString
local variable with the given variableName- Parameters:
variableName
- notnull
- Returns:
- value from execution variables for the given variableName, may be
null
- Throws:
ClassCastException
- if the stored value is not aString
- See Also:
-
setBooleanLocal
Sets local variable with the given variableName to the givenBoolean
- Parameters:
variableName
- notnull
value
- may benull
- See Also:
-
getBooleanLocal
RetrievesBoolean
local variable with the given variableName- Parameters:
variableName
- notnull
- Returns:
- value from execution variables for the given variableName, may be
null
- Throws:
ClassCastException
- if the stored value is not aBoolean
- See Also:
-
setByteArrayLocal
Sets local variable with the given variableName to the givenbyte[]
- Parameters:
variableName
- notnull
value
- may benull
- See Also:
-
getByteArrayLocal
Retrievesbyte[]
local variable with the given variableName- Parameters:
variableName
- notnull
- Returns:
- value from execution variables for the given variableName, may be
null
- Throws:
ClassCastException
- if the stored value is not abyte[]
- See Also:
-
setDateLocal
Sets local variable with the given variableName to the givenDate
- Parameters:
variableName
- notnull
value
- may benull
- See Also:
-
getDateLocal
RetrievesDate
local variable with the given variableName- Parameters:
variableName
- notnull
- Returns:
- value from execution variables for the given variableName, may be
null
- Throws:
ClassCastException
- if the stored value is not aDate
- See Also:
-
setLongLocal
Sets local variable with the given variableName to the givenLong
- Parameters:
variableName
- notnull
value
- may benull
- See Also:
-
getLongLocal
RetrievesLong
local variable with the given variableName- Parameters:
variableName
- notnull
- Returns:
- value from execution variables for the given variableName, may be
null
- Throws:
ClassCastException
- if the stored value is not aLong
- See Also:
-
setShortLocal
Sets local variable with the given variableName to the givenShort
- Parameters:
variableName
- notnull
value
- may benull
- See Also:
-
getShortLocal
RetrievesShort
local variable with the given variableName- Parameters:
variableName
- notnull
- Returns:
- value from execution variables for the given variableName, may be
null
- Throws:
ClassCastException
- if the stored value is not aShort
- See Also:
-
setDoubleLocal
Sets local variable with the given variableName to the givenDouble
- Parameters:
variableName
- notnull
value
- may benull
- See Also:
-
getDoubleLocal
RetrievesDouble
local variable with the given variableName- Parameters:
variableName
- notnull
- Returns:
- value from execution variables for the given variableName, may be
null
- Throws:
ClassCastException
- if the stored value is not aDouble
- See Also:
-
setNumberLocal
Sets local variable with the given variableName to the givenNumber
- Parameters:
variableName
- notnull
value
- may benull
- See Also:
-
getNumberLocal
RetrievesNumber
local variable with the given variableName- Parameters:
variableName
- notnull
- Returns:
- value from execution variables for the given variableName, may be
null
- Throws:
ClassCastException
- if the stored value is not aNumber
- See Also:
-
setFileLocal
Sets local variable with the given variableName to the givenFile
- Parameters:
variableName
- notnull
value
- may benull
- See Also:
-
getFileLocal
RetrievesFile
local variable with the given variableName- Parameters:
variableName
- notnull
- Returns:
- value from execution variables for the given variableName, may be
null
- Throws:
ClassCastException
- if the stored value is not aFile
- See Also:
-
setJsonVariableLocal
UsesObjectMapper
to serialize the given value into json. Value class needs annotations likeJsonCreator
,JsonProperty
andJsonGetter
- Parameters:
variableName
- notnull
value
- may be null- See Also:
-
getVariableLocal
Retrieves local variable with the given variableName- Type Parameters:
T
- target variable type- Parameters:
variableName
- notnull
- Returns:
- value from local variables for the given variableName, may be
null
- Throws:
ClassCastException
- if the returned variable can not be cast to <T>- See Also:
-
setFhirResourceListLocal
void setFhirResourceListLocal(String variableName, List<? extends org.hl7.fhir.r4.model.Resource> resources) Sets local variable with the given variableName to the given FHIRResource
list- Parameters:
variableName
- notnull
resources
-
-
getFhirResourceListLocal
Retrieves FHIRResource
list local variable with the given variableName- Type Parameters:
R
- FHIR resource type- Parameters:
variableName
- notnull
- Returns:
- list of FHIR resources from execution variables for the given variableName, may be
null
-
setFhirResourceLocal
Sets local variable with the given variableName to the given FHIRResource
- Parameters:
variableName
- notnull
resource
- may benull
-
getFhirResourceLocal
Retrieves FHIRResource
local variable with the given variableName- Type Parameters:
R
- FHIR resource type- Parameters:
variableName
- notnull
- Returns:
- value from execution variables for the given variableName, may be
null
-