You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/reference/bpmn/bpmn-user-tasks.mdx
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -318,14 +318,14 @@ The resulting html is:
318
318
319
319
Addressing global Data Objects in the global Data Store uses the same dot-notation syntax as explained [in Script Tasks](../script-task-api#reading-data-objects), but the modifier `@global.` must be prepended to the _variable-name_ to tell that this is not a process variable.
320
320
For example:
321
-
- For setting: `<input type="text" name="@global.vacations.remainingDays">`
322
-
- For retrieving: `<b>Hello, {%@global.vacations.remainingDays%}</b>`
321
+
- For setting: `<input type="text" name="@global.data.vacations.remainingDays">`
322
+
- For retrieving: `<b>Hello, {%@global.data.vacations.remainingDays%}</b>`
323
323
324
-
By default, this notation requests/updates Data Objects in the user section of the user who is currently working on the UserTask. The same behaviour can also be described explicitly with the `@worker.` modifier, e.g. `<b>Hello, {%@global.@worker.vacations.remainingDays%}</b>`.
324
+
By default, this notation requests/updates Data Objects in the user section of the user who is currently working on the UserTask. The same behaviour can also be described explicitly with the `@worker.` modifier, e.g. `<b>Hello, {%@global.@worker.data.vacations.remainingDays%}</b>`.
325
325
326
-
With the modifier `@process-initiator.` it is possible to access the Data Objects of the person who started the process instance, e.g. `<b>Hello, {%@global.@process-initiator.vacations.remainingDays%}</b>`.
326
+
With the modifier `@process-initiator.` it is possible to access the Data Objects of the person who started the process instance, e.g. `<b>Hello, {%@global.@process-initiator.data.vacations.remainingDays%}</b>`.
327
327
328
-
With the `@organization.` modifier it is possible to request Data Objects from the organization, e.g. `<b>Hello, {%@global.@organization.it.incidents.amount%}</b>`.
328
+
With the `@organization.` modifier it is possible to request Data Objects from the organization, e.g. `<b>Hello, {%@global.@organization.data.it.incidents.quantity%}</b>`.
Copy file name to clipboardExpand all lines: content/reference/script-task-api.mdx
+40-40Lines changed: 40 additions & 40 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -125,12 +125,12 @@ Global Data Objects from the global Data Store have a more advanced object struc
125
125
There are two different functions for reading the global Data Objects: `.getGlobal( ... )` just returns the value as a string or integer and `.getGlobalFull( ... )` returns the full object with all properties.
126
126
127
127
Global Data Objects also can have nested child objects which are stored in the property `subParameters`.
128
-
These child Data Objects can have the same _name_ as their parent object, so addressing a global Variable must be done with the full hierachical path separated by a dot `.`, e.g. `variable.getGlobal("vacation.vacation-days")`.
128
+
These child Data Objects can have the same _name_ as their parent object, so addressing a global Variable must be done with the full hierachical path separated by a dot `.`, e.g. `variable.getGlobal("data.vacation.vacation-days")`.
129
129
130
130
Moreover, global Data Objects are separated into organizational and user data. The former is data belonging to the whole organization space and the latter is data belonging just to a user.
131
131
By default, the functions `.getGlobal( ... )` and `.getGlobalFull( ... )` search for a Data Object inside the user section of the user that has started the process instance, i.e. the process initiator.
132
-
An explicit way to mark the same request is to use the modifier `@process-initiator.` in front of the variable name, e.g. `variable.getGlobal("@process-initiator.vacations.remainingDays")`.
133
-
If you want to request (or update) organizational data, you can either use the functions `.getGlobalOrg( ... )` and `.getGlobalOrgFull( ... )` or you prepend `@organization.` before the variable name, e.g. `variable.getGlobal("@organization.it.incidents.amount")`.
132
+
An explicit way to mark the same request is to use the modifier `@process-initiator.` in front of the variable name, e.g. `variable.getGlobal("@process-initiator.data.vacations.remainingDays")`.
133
+
If you want to request (or update) organizational data, you can either use the functions `.getGlobalOrg( ... )` and `.getGlobalOrgFull( ... )` or you prepend `@organization.` before the variable name, e.g. `variable.getGlobal("@organization.data.it.incidents.quantity")`.
|`.set( "<var-name>", <var-value> )`| Updates the value of a Variable in the local Script Task scope.|
165
165
|`.setProcess( "<var-name>", <var-value> )`| Updates the value of a Variable directly inside the process instance. |
166
-
|`.setGlobal( "<var-name>.<child-var-name>", <var-value> )`| Updates `value` of an existing global Data Object directly inside the user space of the _Process Initiator_ in the global Data Store (just `value`, the other attributes are not are not updateable). The modifiers `@organization.` and `@user.` in the front of the variable name can be used to explicitly update a Variable inside the user or organization space. <br/><br/> Throws an _Error_, if the Variable does not yet exist in the global Data Store.<br/> Throws an _Error_, if `<var-value>` is not a simple datatype (e.g. _object_ and _array_ are not allowed). |
166
+
|`.setGlobal( "<var-name>.<child-var-name>", <var-value> )`| Updates `value` of an existing global Data Object directly inside the user space of the _Process Initiator_ in the global Data Store (just `value`, the other attributes are not are not updateable). The modifiers `@organization.` and `@process-initiator.` in the front of the variable name can be used to explicitly update a Variable inside the user or organization space. <br/><br/> Throws an _Error_, if the Variable does not yet exist in the global Data Store.<br/> Throws an _Error_, if `<var-value>` is not a simple datatype (e.g. _object_ and _array_ are not allowed). |
167
167
|`.setGlobalOrg( "<var-name>.<child-var-name>", <var-value> )`| Updates `value` of an existing global Data Object directly inside the organization space in the global Data Store (just `value`, the other attributes are not are not updateable).<br/><br/> Throws an _Error_, if the Variable does not yet exist in the global Data Store.<br/> Throws an _Error_, if `<var-value>` is not a simple datatype (e.g. _object_ and _array_ are not allowed). |
`@organization.it.incidents.amount` and `@process-initiator.vacations.remainingDays`**must** be predefined in the global Data Store (i.e. im Management System)
202
+
`@organization.data.it.incidents.amount` and `@process-initiator.data.vacations.remainingDays`**must** be predefined in the global Data Store (i.e. im Management System)
log.info("\ngetGlobal('@process-initiator.vacations.remainingDays'): "+variable.getGlobal('@process-initiator.vacations.remainingDays')); // the same as before
log.info("\ngetGlobalFull('@process-initiator.vacations.remainingDays'): "+JSON.stringify(variable.getGlobalFull('@process-initiator.vacations.remainingDays'), null, 2))); // the same as before
log.info('\ngetGlobalFull('@organization.it.incidents.amount'): '+JSON.stringify(variable.getGlobalFull('@organization.it.incidents.amount'), null, 2)); // the same as before
log.info("\ngetGlobal('@process-initiator.vacations.remainingDays'): "+variable.getGlobal('@process-initiator.vacations.remainingDays')); // the same as before
log.info("\ngetGlobalFull('@process-initiator.vacations.remainingDays'): "+JSON.stringify(variable.getGlobalFull('@process-initiator.vacations.remainingDays'), null, 2))); // the same as before
log.info('\ngetGlobalFull('@organization.it.incidents.amount'): '+JSON.stringify(variable.getGlobalFull('@organization.it.incidents.amount'), null, 2)); // the same as before
log.info("\ngetGlobal('@process-initiator.vacations.remainingDays'): "+variable.getGlobal('@process-initiator.vacations.remainingDays')); // the same as before
log.info("\ngetGlobalFull('@process-initiator.vacations.remainingDays'): "+JSON.stringify(variable.getGlobalFull('@process-initiator.vacations.remainingDays'), null, 2))); // the same as before
log.info('\ngetGlobalFull('@organization.it.incidents.amount'): '+JSON.stringify(variable.getGlobalFull('@organization.it.incidents.amount'), null, 2)); // the same as before
log.info("\ngetGlobal('@process-initiator.data.vacations.remainingDays'): "+variable.getGlobal('@process-initiator.data.vacations.remainingDays')); // the same as before
log.info("\ngetGlobalFull('@process-initiator.data.vacations.remainingDays'): "+JSON.stringify(variable.getGlobalFull('@process-initiator.data.vacations.remainingDays'), null, 2))); // the same as before
log.info('\ngetGlobal('@organization.data.it.incidents.amount'): '+variable.getGlobal('@organization.data.it.incidents.amount')); // the same as before
log.info('\ngetGlobalFull('@organization.data.it.incidents.amount'): '+JSON.stringify(variable.getGlobalFull('@organization.data.it.incidents.amount'), null, 2)); // the same as before
log.info("\ngetGlobal('@process-initiator.data.vacations.remainingDays'): "+variable.getGlobal('@process-initiator.data.vacations.remainingDays')); // the same as before
log.info("\ngetGlobalFull('@process-initiator.data.vacations.remainingDays'): "+JSON.stringify(variable.getGlobalFull('@process-initiator.data.vacations.remainingDays'), null, 2))); // the same as before
log.info('\ngetGlobal('@organization.data.it.incidents.amount'): '+variable.getGlobal('@organization.data.it.incidents.amount')); // the same as before
log.info('\ngetGlobalFull('@organization.data.it.incidents.amount'): '+JSON.stringify(variable.getGlobalFull('@organization.data.it.incidents.amount'), null, 2)); // the same as before
log.info("\ngetGlobal('@process-initiator.data.vacations.remainingDays'): "+variable.getGlobal('@process-initiator.data.vacations.remainingDays')); // the same as before
log.info("\ngetGlobalFull('@process-initiator.data.vacations.remainingDays'): "+JSON.stringify(variable.getGlobalFull('@process-initiator.data.vacations.remainingDays'), null, 2))); // the same as before
log.info('\ngetGlobal('@organization.data.it.incidents.amount'): '+variable.getGlobal('@organization.data.it.incidents.amount')); // the same as before
log.info('\ngetGlobalFull('@organization.data.it.incidents.amount'): '+JSON.stringify(variable.getGlobalFull('@organization.data.it.incidents.amount'), null, 2)); // the same as before
0 commit comments