Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

Trigger workflow by OData service

Introduction:

This blog is define to trigger the Workflow by custom application through Odata services it is a simple workflow with user decision, when a user approve the workflow the record will be created in database table.

To Create an Odata services check my first blog

https://blogs.sap.com/2019/01/28/building-your-first-fiori-app-with-backend-connection-and-odata-service/

  1. Goto Tcode SWO1 to create a custom business object

  • Create two events SAVE and EDIT

Add the key fields of the object

Generate the business object

Goto Tcode SWDD and create a workflow.

Define its starting events

Create a container element

Assign the agent

Assign General Task to agent (The one who is triggering will get notification in its own inbox)

Create a user decision

Now Goto Create_entity method and add this FM

Also write this FM in update_entity

Now Create a Method and Add in the Activity

Activate the workflow

Conclusion:

By following this blog you can trigger the workflow whenever you create or edit the data from your fiori application.



This post first appeared on Web Service Testing A Blackjack GUI And API, please read the originial post: here

Share the post

Trigger workflow by OData service

×

Subscribe to Web Service Testing A Blackjack Gui And Api

Get updates delivered right to your inbox!

Thank you for your subscription

×