can you please let me know how I can call the SCXML flows from IRD?
My requirement is that from my IRD strategy I need to execute SCXML flows, which will return some values. The value returned will be a JSON object.
You can easily call ORS strategies via HTTP interface of ORS component - for more information follow the ORS documentation. Of course, you can “transfer” the interaction to the routing point or IQ where the ORS executed the logic.
Thanks Kubig for the response. I used the Web Service block in IRD. I can hit SCXML but the JSON response which i am getting is not getting handled properly. in IRD i used all the data types to handle this response. But may be its JSON Object it doesnt save in any variable and the value is blank in logs.
from URS transfer the call to that RP where you have got the SCXML
Include the logic in SCXML to attach the data on this Interaction Data that you created in URS. (Make check for looks) or redirect the call to a different RP on URS again
once you get the data - do whatever you want to do.
you can convert the json to a string and attach to the attached data as well. (if you would prefer)
may be , but if he has the scxml, it is jsut attaching and reading the data -
he could directly use strigfy fn in scxml and attach in the attach data and his work is done.
Or just use the IRD function that will do exactly the same and no need to have another point of control into his call flow.
Just different points of view
Store entire JSON doc in some variable. Turn it into KVList by reassigning to LIST variable or by using KVListFromJSON function and after that use KVList access functions (like KVListGetStringValue) to get specific values.