Access to Process Context Variables
There are 4 ways to access process context variables:
- Type "Script" -
paramName
- Type "String or Expression" -
${paramName}
- Type "String or Expression" -
#{paramName}
- Examples of nesting:
- Type "String or Expression" -
${attributes.loanApplicationMethod}
- Type "String or Expression" -
${attributes.get("clientLastName")}
- Type "String or Expression" -
${execution.getVariable("attributes").get("personalInfo").get("clientLastName")}
;
- Type "String or Expression" -
- Examples of nesting:
The most preferable usage - ${execution.getVariable("paramName")}
Usage examples:
- Setting a value (variable type: "String or Expression") -
${execution.setVariable("fullName", "Ivanov Ivan Ivanovich")}
; - Getting a value (variable type: "String or Expression") -
${execution.getVariable("attributes")).put("appState", "Under Review in the Bank")}
;
Examples of conditions for the gateway:
- Type "String or Expression" -
${processResult == 'CONFIRM'}
- Type "String or Expression" -
${processResult == 'automaticNotification' || processResult == 'sendToApprovalWithCondition'}
- Type "Script", Groovy -
loanApplicationMethodResult==1