Breadcrumbs

Step 3: Testing With Roles

In the Controls panel you should see the message Test environment ready. Click icon Open test application to access the test service:

grafik-20250306-072723.png

The process table is displayed showing all processes available in your service. You can use the Start button here - or click on a process to opens its instance table. Here, you can also use the blue Start button to create a new process instance:

grafik-20251014-094629.png

Role Test 1: Write and List Permission

Now create some test instances but do not finish them (see below):

grafik-20250909-111827.png

If your order value is within the limit, do not click OK in the third form. Open the menu on top left and click the name of your process to go back to the instance overview:

grafik-20250909-112215.png

If your order value exceeds the limit, you are currently not allowed to execute process step Check order. Click Back to Overview to display the instance overview:

grafik-20250909-111953.png

Reminder: If you have finished tutorial 4, the new order limit is 500.

Create at least two different instances:

  • One instance should fit the order value limit.

  • One instance should exceed the order value limit.

grafik-20250909-112505.png

Now open both instances and check their behavior:

Current Task

Role Right of pas_tutorial_employee
for this step

Instance Behavior

Show_approval_message

Write

  • You are able to open the instance.

  • You can process the instance (you can click button OK in the form).

Check_order

List

  • You are not able to open the instance. The Processing...  message is displayed. It indicates:

    • that the instance is currently processed in task Check_order.

    • that you do not have the permission to execute this task.

Role Test 2: Write and Read Permission

Switch back to your process and change the role right of lane Supervisor to Read. Save the change and open the application again:

grafik-20250606-124456.png

Until now, your user did not have permission to perform the approval step. Therefore the instance that exceeds the order limit (created in test 1) is still available:

grafik-20250909-112934.png

Create one new test instance that fits the order value limit:

grafik-20250909-113107.png

Now open both instances and check their behavior:

Current Task

Role Right of pas_tutorial_employee
for this step

Instance Behavior

show_approval_message

Write

  • You are able to open the instance.

  • You can process the instance (you can click button OK in the form).

Check_order

Read

  • You are able to open the instance.

  • You cannot process the instance: If you click any button in the form, you are transfered to the instance list and a toast message is displayed: You are not allowed to execute this operation (see picture below).

grafik-20250909-113251.png

Roles Test 3: Write Permissions for all Steps

Switch back to your process and change the role right of lane Supervisor to Write. Save the change and open the application again:

grafik-20250606-124659.png

Open the instance overview:

grafik-20250909-114319.png

Since your user did not have permission to perform the approval step so far, your test instance is still displayed in the instance list:

grafik-20250909-114400.png

Open the remaining instance and check its behavior:

  • You are able to open the instance.

  • You can process the instance (you can click one of the two buttons in the form).

grafik-20250909-114530.png

If you have confirmed or rejected, the form of the next process step is displayed:

grafik-20250909-114620.png

Checking the Deployed Service

If you have followed all tutorials step by step, you can review the differences between a test service and a deployed service. So far, you have deployed the service only once in tutorial 4. The roles were implemented in tutorial 5. The deployed service should not yet reflect the implementation of the roles.

Open the deployed service:

grafik-20250606-124738.png

Start the service to create a new instance:

grafik-20250909-115049.png

You still see the order form created in tutorial 1 - without the label element created in tutorial 4:

grafik-20250909-115203.png

And no matter what role permissions you store in the test service, you will always able to execute the Form_CheckOrder:

grafik-20251014-094522.png
academy_trophy_gray.png

Congratulations - you have done it!
You have modeled your first role-based process and tested it.

👩‍💻

Curious about more details?

In this step you tested your role-based service. Have a look into our Designer Guide if you are interested in more detailed information: