Maintained reference: Workflow Actions › OFFICE_ASSIGNMENT is the up-to-date version of this topic. This page keeps older notes and examples.
This is action is for assign to an officer in the workflow and it has to be an breaking action
// Assign the application to an office based on the value of a field on the form
{
"args": {
"officeId": null,
"officeLevel": "LEVEL_1",
"formFieldKey": "applicationOffice.value",
"formFieldKeys": null,
"fixedOfficeCode": null,
"officeAssignmentType": "CODE_IN_APPLICATION_OFFICE",
"officeAssignmentExpression": null
},
"actionType": "OFFICE_ASSIGNMENT"
}
// Assign the application to an office based on the value of a field on the form (using office code)
{
"args": {
"officeId": null,
"officeLevel": "LEVEL_1",
"formFieldKey": "applicationOffice.value",
"formFieldKeys": null,
"fixedOfficeCode": null,
"officeAssignmentType": "CODE_APPLICATION_FIELD_CODE",
"officeAssignmentExpression": null
},
"actionType": "OFFICE_ASSIGNMENT"
}
// Assign the application to a fixed office
{
"args": {
"officeId": "0c9984f2-9708-4566-8bb2-9a7c48b431a9",
"officeLevel": "LEVEL_1",
"formFieldKey": null,
"formFieldKeys": null,
"fixedOfficeCode": null,
"officeAssignmentType": "CODE_FIXED_OFFICE",
"officeAssignmentExpression": null
},
"actionType": "OFFICE_ASSIGNMENT"
}
// Assign the application to an office based on a selected location
{
"args": {
"officeId": null,
"officeLevel": "LEVEL_1",
"formFieldKey": "processingSector.id",
"formFieldKeys": ["processingSector.id", "embassy.id"],
"fixedOfficeCode": null,
"officeAssignmentType": "CODE_FROM_LOCATION",
"officeAssignmentExpression": null
},
"actionType": "OFFICE_ASSIGNMENT"
}
// Assign the application to an office based on an expression
// !!!!! Not implemented yet !!!!!
{
"args": {
"officeId": null,
"officeLevel": "LEVEL_1",
"formFieldKey": null,
"formFieldKeys": null,
"fixedOfficeCode": null,
"officeAssignmentType": "CODE_FROM_AN_EXPRESSION",
"officeAssignmentExpression": ""
},
"actionType": "OFFICE_ASSIGNMENT"
}