26.3 26.2 26.1 26.0 25.3 25.2 25.1 25.0
26.3 26.2 26.1 26.0 25.3 25.2 25.1 25.0

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 Play button here:

grafik-20260911-111235.png

You can also click on a process to open its instance table. Here, you can also use the blue Play button to create a new process instance:

grafik-20260911-111446.png

In role-based applications, role labels are displayed above the header of the instance table if your user is assigned more than one role. If your user has been assigned the roles that you created in step 1, you have two roles now:

  • tutorial_employee

  • tutorial_supervisor

Therefore, you should now see role labels for both roles:

grafik-20260911-112410.png

Test Preparations

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-20260911-123114.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-20260911-112858.png

Result:

Instance

Approval Limit

Current Task

Role

1 one circle orange

Fits the limit.

Show_approval_message

This is the instance shown in role label tutorial_employee, because the employee sees the approval message.

2 two circle orange

Exceeds the limit.

Check_order

This is the instance shown in role label tutorial_supervisor, since the supervisor must review orders that exceed the order limit.

Role Test 1: Double Write Permission

Open both instances and check their behavior:

Current Task

Instance Behavior

Show_approval_message

  • You are able to open the instance.

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

Check_order

  • You are able to open the instance.

  • You can process the instance (you can click Approve or Reject in the form).

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-20260911-114312.png

Until now, your user could process all instances, no matter in which step they currently are.

For the next test, create again two different instances:

  • One instance should fit the order value limit.

  • One instance should exceed the order value limit.

grafik-20250909-113107.png

Now open both instances and check their behavior:

Current Task

Instance Behavior

Show_approval_message

  • You are able to open the instance.

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

Check_order

    • You are able to open the instance.

    • You cannot process the instance: If you click any button in the form, you are transferred 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 and List Permission

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

grafik-20260911-121247.png

Open the instance overview. 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 not able to open the instance.

  • You see the following screen:

grafik-20260911-121705.png

Why is that?

Your user has two roles, both roles don’t have access to the instance.

  • tutorial_employee: is not allowed for process step Check_order at all. In your process model, this step lies inside the supervisor’s lane.
    Go to the instance list and click role label tutorial_employee: His instance list is empty.

    grafik-20260911-122452.png
  • tutorial_supervisor: has currently only list permission. Therefore, user’s with role supervisor can only see the instance list, but they are not able to open the instance neither to process it.
    Go to the instance list and click role label tutorial_supervisor: His instance list shows all instances that are currently in step Check_order.

    grafik-20260911-122745.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-20250909-115256.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: