Skip to Content

The SAP Cloud Platform Workflow service is now available in the SAP Cloud Platform Trial environment. In this two-part blog series, I’ll show you how to configure the service and how to model and run your first workflow.

In the first part, we will configure the service and model our first workflow.

 

Enabling the Workflow service

Logon to your SAP Cloud Platform Cockpit and open the services tab.

Search for “Portal” and make sure the service is enabled in your account.

Then, search for “Workflow” and open the “Workflow” tile. Click on the blue “Enable” button in the service header:

After a few seconds, the status should switch to enabled:

If the enablement fails, try again – this could be a temporary problem.

 

User configuration

In order to use the service, you need assign the Workflow roles to your Trial user.

In the Workflow service tile, click on “Configure Service” (under Service Configuration at the bottom of the page):

 

 

Select “Roles” from the Menu on the left-hand side.

There are four standard roles for the Workflow service:

  • WorkflowDeveloper – required for editing and deploying workflow models
  • WorkflowAdmin – required for admistrating workflows and tasks
  • WorkflowParticipant – required for processing task in the My Inbox
  • WorkflowInitiator – required starting new workflow instances

Assign your user to each role. Select the role and then click on the “Assign” link in the “Individual Users” table:

Enter your user ID. If you are not sure, you can check your user ID in the header toolbar of the SAP Cloud Platform Cockpit:

Do not forget to repeat this assignment for all four Workflow roles.

Update: Log off and log on again for the changes to become active.

 

Create your first workflow

Open the SAP Web IDE (Multi-Cloud Version) – you can find the link on the Workflow service tile Note: Enable the SAP Web IDE Multi Cloud service first in the cockpit if you haven’t already done so.

To use the Workflow editor, you need to first activate the feature in Web IDE.

Open the “Tools – Preferences” menu and then select “Features”.

Find the “Workflow Editor” feature in the list and make sure it is switched on:

Now, create a new “Project from template”.

Change the category to “Business Process Management” and then select the “Workflow” template.

On the next page, enter a name for the new Workflow project, e.g. MyWorkflowProject.

On the following page, enter a name for the new workflow, e.g. MyFirstWorkflow, and a description (optional).

Hit “Finish”.

You should now see a project with a workflow file in your workspace:

Note: If there are layout issues with the editor window (can’t see the properties), simply refresh the Web IDE window (F5).

The workflow can now already be deployed (even though it won’t do much!).

Select the workflow file in the workspace, open the context menu and select Deploy – Deploy to SAP Cloud Platform Workflow.

You should see a success notification in the top right corner:

In part two, we will run this workflow and then enhance it with a user task, which will be shown in the My Inbox application.

To get more details on SAP Cloud Platform Workflow and all the new stuff we have delivered recently – just sign up for one the scheduled Webinars and get in touch with our experts.

 

Update: Part 2 is out – Read it here.

To report this post you need to login first.

26 Comments

You must be Logged on to comment or reply to a post.

  1. Moya Watson

    One tip — I had actually not yet enabled the Web IDE Multi-Cloud Version yet as a service in my account.  That needs to be done first before trying to launch it from the Workflow tile.

    Otherwise, I’m in and looking forward to part two!

    (1) 
  2. Rubén Martínez

    Hello Christian, one question – Do I have to give any other permissions to my user in order to deploy the workflow? I already gave my user all the roles available in Workflow Service Config and in the Web IDE M-C version Service Config… I am getting this message when trying to deploy:

    “(Deployment) Your workflow Workflow1 could not be deployed. User does not have sufficient privileges.”

    (0) 
      1. Christian Dr. Drumm

        Hi Deeksha,

        Im also getting the following error: “Your workflow Workflow1 could not be deployed. User does not have sufficient privileges.”

        I tried what you described in the trouble shooting document. However, I still can’t the workflow. Do you have any further ideas how to solve this?

        Best,
        Christian

         

        (0) 
          1. Stefan Henke

            Changes in authorization assginment will not be visible within the very same browser session. Do a manual logout and login from e.g. Cloud Cockpit. After that it should work.

            (0) 
  3. Former Member

    Hi I am trying to build the workflow, however in the Category there is not  “Business Process Management”  The categories are “Feature and Plugin Development”, “Featured”, “Multi Module” , SAP Fiori Application” and “SAP Fiori Elements”  how may proceed with the Workflow tutorial?

    Thanks

    Luis

    (0) 
    1. Archana Shukla

      Hello Luis,

      Have you enabled and saved the Workflow Feature in Multi Cloud WebIDE ? Only when you have Workflow feature enabled, would you be able to see this category.

      Regards,
      Archana

      (0) 
  4. Former Member

    Thanks to Archana Shukla for the information. Now I am able to see the image at the workflow editor, however when I try to deploy I get the following message:

    2:25:18 PM (Deployment) Your workflow MyFirstWorkFlow could not be deployed. User does not have sufficient privileges.

    I applied the solution indicated by “ Deeksha Ramesh” Many Thanks Deeksha . I did close the browser, reinitiate my computer, However I continue to get the above message.

     

    I appreciate any information that may help me to work this out.

    Thanks and kind regards

    Luis

    (0) 
  5. Former Member

    I am getting the following message:

    3:25:03 PM (destination) Destination ‘webide_di’ is either not a Web IDE destination or not valid because the WebIDEUsage or URL properties are missing in the destination settings.

    Check your destination settings in the SAP Cloud Platform Cockpit.

    Below are the destination settings, I believe those are OK, please let me know what is missing?

     

    Name: bpmworkflowruntime

    Type: HTTP

    Description: bpmworkflowruntime

    *URL: https://bpmworkflowruntimewfs-p003103trial.hanatrial.ondemand.com

    Proxy Type: Internet

    Authentication: AppToAppSSO

    Additional Properties: WebIDEEnabled  true

    Default JDK truststore

     

    (0) 
  6. Former Member

    Hi Christian thanks for the tip.

    I was able to eliminate the message for the connections the the parameter  “WebIDEUsage” had a value of true in “webide_di” and did not have a value in the “bpmworkflowruntime” was not set, for both I used “odata_gen” as the value for “WebIDEUsage”.

    However I still get this message when deploying

    9:11:30 PM (Deployment) Your workflow MyFirstWorkFlow could not be deployed. User does not have sufficient privileges.

    Regards

     

    Luis

    (0) 
    1. Christian Loos Post author

      You should not need the WebIDEUsage parameter at all.

      Here is how the destination should look:

      Also make sure that your user has the WorkflowDeveloper role assigned (and that you have logged off/logged back in after assigning the role).

      (0) 
  7. Vibhor Garg

    Hello Christian,

    I am getting error “User does not have sufficient privileges”. I have added all the roles to my id under service workflow > configure service.

    Initially I thought may be activation of these services takes time so I even waited for a day but I am still getting this error.

    Please suggest how to proceed.

    Regards,

    Vibhor

     

    (0) 
    1. Christian Loos Post author

      Do you get the error on deployment?

      Please double check the role assignment (especially WorkflowDeveloper) and then log off and log on again.

       

      (0) 
  8. Vibhor Garg

    Hello Christian,

     

    Thanks for your response.

     

    I have already assigned all the required roles and now getting below errors.

     

    ‎09‎:‎41‎:‎47 (destination) Destination ‘bpmworkflowruntime’ is either not a Web IDE destination or not valid because the WebIDEUsage or URL properties are missing in the destination settings.
    Check your destination settings in the SAP Cloud Platform Cockpit.
    ‎09‎:‎41‎:‎47 (destination) Destination ‘webide_di’ is either not a Web IDE destination or not valid because the WebIDEUsage or URL properties are missing in the destination settings.
    Check your destination settings in the SAP Cloud Platform Cockpit

     

    I checked and confirm that WebIDEUsage is set to TRUE for “bpmworkflowruntime” and “webide_di“. Please find screen-shots for reference.

     

    Please help as I have been unable to move forward.

     

    Regards,

    Vibhor

     

    (0) 
    1. Christian Loos Post author

      Hi,

       

      You could try to just change the value for “description” in the “bpmworkflowruntime” description (put in a space and remove it), then save the destination. This might help.

      You are using the Web IDE Fullstack edition, right?

      Christian

      (0) 
  9. Vibhor Garg

    Hello Christian,

    As suggested by you, I made change in “bpmworkflowruntime” description, saved it but it didn’t help. I am still getting the same error (deployment error).

    I have exhausted options to make this very first WF work,

    Also, yes I am using Web IDE Fullstack edition.

    Please suggest.

    Regards,

    Vibhor

    (0) 
    1. Christian Loos Post author

      The messages regarding the destinations are just warnings.

      If you still getting the HTTP 403 error on deployment of the workflow please check the authorizations again: https://help.sap.com/viewer/e84bfa716bd4463eb9fdb810d7a1aa97/Cloud/en-US/103f2b307af142e5a91368c1539dea57.html

       

      (0) 
  10. Former Member

    Hello Christian,

     

    Thanks for your blog.

    I am getting an error while deploying my workflow. The error says “Error while fetching XSRF token”. Can you please advise how to resolve it.

    So far i have created a simple workflow with start and stop event only and when i try to deploy it, i get the error. Please help.

     

    (0) 

Leave a Reply