cancel
Showing results for 
Search instead for 
Did you mean: 

WF-DCN without payload

Former Member
0 Kudos

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=De...{"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&doma...{"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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Solved.

the "data" statement must dissapear.

it's now working.

Regards,

Sup_starter

Answers (2)

Answers (2)

Former Member
0 Kudos

Dear SUP_Starter,

could you please share the final WF DCN request, i am still facing issue with this even after removing data statement of it, would be great if you can share the sample project which explain end to end process of WF-DCN

My DCN request is as below.

http://localhost:8000/dcn/DCNServlet?cmd=wf&security=admin&domain=Default&username=supAdmin&password...{"op":"upsert","id":"some number",”to”:”supAdmin”,”subject”:”Expense request (200001) has been received”,”from”:”SAP”,"body":"none",”read”:”false”,”priority”:”true”,”messages”:[{}]}

Thanks, prem

Former Member
0 Kudos

Please where do i put the JSON script? On the workspace or with the RFC?

Cheers