How to create Android application based on SAP Workflow with help of Gateway Productivity Accelerator (GWPA)
In my earlier blog, I explained how we can create Android application consuming OData with GWPA. In this blog, I will explain about creating Android application based on SAP Workflow!
Basically we will use demoformabs (Demo Absence Notification workflow) having workflow ID WS70000704.
We will use steps 000087 Create notification of absence and 000048 Approve notification of absence as highlighted below.
And workflow service WFSERVICE shipped with gateway.
You can follow detailed steps mentioned in How-to guide at http://scn.sap.com/docs/DOC-29199
Now it’s time to develop android application!
Create new project and provide details.
Select Workflow Application.
Assuming you configured the connection for backend SAP NetWeaver Gateway system, you will be able to see all services available. Now search with WF and you will find available workflow services in your system. Select workflow service WFSERVICE.
Click on OK and Finish.
Finally, application structure will look as below.
Now it is time to test our application.
Select Run As –> Android Application. It will launch Android emulator where you will be able to see your application. Provide credentials which you used to configure backend SAP NetWeaver Gateway system.
It will display workflow items available in your work list. Here, I have below 3 tasks in my work list.
Click on any single task which will open details of that task.
On clicking Decision button, it will give 2 options as displayed below.
You can then put comments and process it.
After processing task, it will disappear from your inbox.
You can see workflow items in transaction SBWP (SAP Business Workplace)
If you again process items in Android application, accordingly it will be removed from you inbox. Now I processed one more item and hence my inbox will display single task.
We can verify again by going back to SAP Business Workplace. And as per below screen, it contains single work item.
It is very easy to develop workflow based android application with the help of SAP NetWeaver Gateway Productivity Accelerator (GWPA). we can develop nice android application just within few minutes!