Overview
This mini process gives a brief overview of the design of a process with low code.
...
The following sections explain the minimal coding needed for the process.
Table of Contents |
---|
Setting Up the Ping-Pong Process in yuuvis® RAD
This process, which reads the answer to a question, is one of the smallest you can design.
...
Figure 1: In the client, the 'Ping' task is shown in the task list on the left. In the middle, you see the task form open in the task area, and on the right, the preview of the object context as part of the process file.
Requirements
You need three things to get started:
...
View file | ||||
---|---|---|---|---|
|
Installation
Deploying the Process In Your system
- Unzip the project file (see Requirements) to the Documents folder.
- Start yuuvis® RAD designer.
- Click Open.
- Navigate to the folder where the scenario was unzipped. Select the
.eoproj
file and confirm the selection with Open. - Open Process models in the navigation tree of the project.
- Copy Ping-Pong in the navigation tree by right-clicking and then pasting it into the Process model of your deployed project.
- Deploy Ping-Pong to your system by right-clicking the process model and selecting Deploy.
- In a browser (Firefox, Chrome, or Edge), open yuuvis® RAD management-studio at
<servername>/enaio/management
and log in with your administrator account.- Go to Main menu > Processes.
- In Process Management, select register Models.
- In the In-tray on the left, select Ping-Pong.
- Click the Actions menu on the right and select Move. Specify where in the Model groups to move to.
- Click the Actions menu again and select Activate.
- In a browser, open yuuvis® RAD client and select any object.
- Click the Actions menu on the right. Under More actions, you will see Start mini-process Ping-Pong.
- How to use the process see below
Figure 2: Project structure with the Ping-Pong process model
Process Model Definition
The following section describes how to design the process model.
Creating a Process Model
Start yuuvis® RAD designer.
...
- Define the task form as shown in Figure 1.
- Define the task form as shown in Figure 1.
- Define Pong Task Attributes
- Select the 'pong' task.
Set Participant type to "Script-controlled" and write the BeforeStartActivity script to define the participant (performer).
Code Block language js title BeforeStartEvent Script // Creator becomes performer $.activity('this').performers.push($.process.creator); $.done();
- Define the task form so that it is similar to the 'ping' task. Figure 7 below shows how it should look in the client.
Figure 7: Inbox list with selected Pong task and its task form
Using the Ping-Pong Process in the client
If Ping-Pong is deployed in the configuration as described above, each user can start a process for any object available to them.
...
- Start a process in the client
- Select any object.
- Click the Actions menu on the right and, in the section More actions, select Start mini-process Ping Pong.
- The following fields in the start form must be filled in:
The Subject is preset with the title of the object and can be modified.
Type your Question.
Define the Supporter by typing '*' to get a list of all users, or start typing the first or last name to open a suggestion list. - Click OK to start the process.
- Ping Task: Answer question
- Open the Inbox
- Select the task and click Accept task to show the task form
- Read the Question and write your Answer
- Click Forward to forward the process to the Pong task
- Pong Task: Read supporter's Answer
- Open the Inbox
- Select the task and click Take over to show the task form
- Read the Answer
- Click Forward to continue the process to its end
- Monitor the process
- Each process initiator and process owner can monitor processes in the view My processes.
Go to Main menu > My processes and have a look at the process history.
- Each process initiator and process owner can monitor processes in the view My processes.
Ideas for Extensions
- Rename the Forward actions
- Configure a task action Return for Ping and Finish for Pong instead of showing standard Forward
- Deadline
- Fixed deadline
Can be configured without scripting in process aspect Time periods. - Flexible deadline
Add a datetime field deadline to the process and add this onto the forms as well. The user may specify a deadline. This predefined deadline has to be set by a next short scripting.
- Fixed deadline
- Repeat the Ping-Pong
- Use a Loop Task around the Ping and Pong tasks and control it by an additional Boolean field repeat which can be checked on the Pong task form.
- Use a string field communication and store each question and answer to it using the BeforeEndActivity event script. Add this to the Ping and Pong tasks as well.
- Constrain the possible supporters
- Set a filter for the ID field as described here.