Quantcast
Channel: SCN : All Content - SAP Gateway
Viewing all articles
Browse latest Browse all 2823

How to create Android application based on SAP Workflow with help of Gateway Productivity Accelerator (GWPA)

$
0
0

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.

android_wf1.jpg

And workflow service WFSERVICE shipped with gateway.

android_wf2.jpg

You can follow detailed steps mentioned in How-to guide athttp://scn.sap.com/docs/DOC-29199


Now it’s time to develop android application!


Create new project and provide details.

android_wf3.jpg

Select Workflow Application.

android_wf4.jpg

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.

 

android_wf5.jpg

Click on OK and Finish.

 

Finally, application structure will look as below.

android_wf6.jpg

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.

android_wf7.jpg

It will display workflow items available in your work list. Here, I have below 3 tasks in my work list.

android_wf8.jpg

Click on any single task which will open details of that task.

android_wf9.jpg

On clicking Decision button, it will give 2 options as displayed below.

android_wf10.jpg

You can then put comments and process it.

android_wf11.jpg

After processing task, it will disappear from your inbox.

android_wf12.jpg

You can see workflow items in transaction SBWP (SAP Business Workplace)

android_wf13.jpg

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.

android_wf14.jpg

We can verify again by going back to SAP Business Workplace. And as per below screen, it contains single work item.

android_wf15.jpg

 

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!

 



Viewing all articles
Browse latest Browse all 2823

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>