Quantcast
Channel: SCN : Discussion List - SAP for Mobile
Viewing all articles
Browse latest Browse all 5806

WF-DCN without payload

$
0
0

Hello.

 

I'm creating a server-starting workflow, where SAP system will send a WF-DCN notification for a requisition approval.

 

After implementing it, using the send notification option in Unwired Workspace the flow is working. The email is being sent to the device, and the workflow is working fine (the requisition is being approved).

 

Now I want to automatize the flow, and for that I want to implement WF-DCN without payload. I defined the MBO for ONLINE CACHE POLICY.

 

From documentation, I can see that the scructure should be somehting like this:

"{”id”:””,”op”:”:”,”subject”:”test”,”to”:”test”,”from”:”test”,”read”:,”priority”:,”body”:” MATCH:SUP_MWF,TaskID:TS97200149, WIID:1470577,

USER:PERF0111*#END#*”,“data”{}}"

 

So, I constructed several requests but all with error (I think that the problem is in data part, that I supose i don't need in "without payload" requests):

 

try 1:

http://xxx.xx.xx.xx/dcn/DCNServlet?cmd=wf&security=admin&username=supAdmin&password=xxxxxx&domain=Default&package=SybaseDemo_RequisitionApproval&dcn_request={"op":":upsert","id":"20120626001","to":"supAdmin","subject":"Sybase: requisition (0010000027), item (00010) is ready for approval","from":"SAP","body":"none","received":"2012-06-26T10:40:45+05:00","read":false,"priority":true,"data":""}

 

response: "com.google.gson.JsonPrimitive cannot be cast to com.google.gson.JsonArray"

 

try 2:

http://xxx.xx.xx.xx:8000/dcn/DCNServlet?cmd=wf&security=admin&username=supAdmin&password=xxxxxx&domain=Default&package=SybaseDemo_RequisitionApproval&dcn_request={"op":":upsert","id":"20120626001","to":"supAdmin","subject":"Sybase: requisition (0010000027), item (00010) is ready for approval","from":"SAP","body":"none","received":"2012-06-26T10:40:45+05:00","read":false,"priority":true,"data":{}}

 

response: could not be parsed

 

Can anybody post and example of WF-DCN without payload?

 

Thanks and regards,

Sup starter


Viewing all articles
Browse latest Browse all 5806

Trending Articles



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