Description
This process is useful for cases where the standard “Share” action that can be used to share objects with other users is not sufficient. This “Share” action does not only share objects with selected users, it also notifies them about the shared document and requires a confirmation for the process to be completed. The process can be also used as a template for further customization of sharing use cases, if they are to be used in projects.
...
This process is configured to be only startable with an object. Configure the startable object types in the Main Activity configuration.To any document. To initiate this process, you must have Edit rights for the object type you want to share. Select the “Share object and notify V4” notify” action, add the users or user groups you want to share this document with and write a comment:
...
The start form assures that the process can only be started if the given object type is shareable. If not, the OK button is inactive and an error message below the check box Object type is shareable will be displayed.
Inbox
Each user and member of the group receives groups will receive the task 'Confirm sharing' in his inbox.
Each recipient must accept the task, read the document and confirm the task when finished. As soon as each user has confirmed, the process ends or the initiator will be notified about that based on the value of the variable notifyInitiator, which can be set on the start form.
...
Administering the Sharing Process
Download the example model at the bottom of this page. Open the project in the designer and copy the Sharing process model into your projectTo import the model into yuuvis RAD designer, follow these steps:
- Copy the downloaded .bpmdef file into your yuuvis RAD designer project directory and open the designer.
- Create a model with same namespace and name of the model (namespace: "Sharing", name: "SharingVx" where x is the version number) you just downloaded and moved into your project directory.
Then validate the model : You should see one warning. That is because the process model is configured to be and if everything is fine, deploy the model.
The model looks like this:
Configuring the main activity
It is configured that the process is only startable with an object but not object type is allowed for starting the process. Configure , more precisely any document on the system. You can configure the startable object types in the Main Activity configuration to get rid of that.
After that you can deploy the model on your system.
The model looks like this:
Main Activity Settings
main activity settings.
This process is available for each user and process. Change the Initiators and the Main object type to to restrict its behavior.
The process subject is set by the title and type of the object the process is started for, as shown below in the BeforeStartEvent of the main activity:
Version 4
|
---|
...
Configuring the multi-instance activity
To send a task to each user or member of the configured groupgroups, the container for parallel execution has to be configured like this:
...
Code Block | ||||
---|---|---|---|---|
| ||||
// Set all participants var usersgroupsusersGroups = $.variable('usersgroupsusersGroups').value; for(var i = 0; i < usersgroupsusersGroups.length; i++){ var usergroupuserGroup = usersgroupsusersGroups[i].value; var recipient = new $.OrgObject(); recipient.id = usergroupuserGroup; $.activity('this').performers.push(recipient); } $.done(); |
Configuring the activity '
...
note'
The Participant type attribute must be set to 'Multi-instance controlled', in accordance with the settings of the parallel multi-instance container (see above).
Each user will also receive an e-mail notification, if an e-mail address is provided in his user profile and the e-mail server is configured.
The standard Forward button is renamed to Confirm, as can be seen in the Actions attribute.
Prerequisites
...
After sharing the object with a user, the Display Read right for this object is assigned to him.
...
Version | Date | Compatible core-service version | Author | Description | Download | ||||||
---|---|---|---|---|---|---|---|---|---|---|---|
4 | September 0607, 2023 | 8.0 or newer | A-Team |
|
| ||||||
3 | March 22, 2019 | Martin Bartonitz |
| ||||||||
2 | March 21, 2019 | Martin Bartonitz |
| ||||||||
1 | March 19, 2019 | Martin Bartonitz | Start with basics:
|
...