Hi,
I'm quite new with Appian and I'm facing an issue in my first implementation. Any help would be very appreciated
I have 2 processes: register service and update service. The first one (register service) has a receive message event that will wait for a signal/event from the update service process.
Update service send successfully an event:
Message Content: Invoice as Text: =pv!message
Optional Context: =pv!message
message as: {"OrderNumber":"12345","InvoiceNumber":"xxxxx.20D673.13333","Skus":[["049300"]]}
Register service receives successfully the event:
msg!body as: {"OrderNumber":"12345","InvoiceNumber":"xxxxx.20D673.13333","Skus":[["049300"]]}
Problem: I want to check the OrderNumber and Skus in Event Conditions against the current process variables to validate if they match before resume the process. However, I'm not able to parse the msg!body to json... Does anyone know why? or how can I implement this condition assuming I allways receive a json that need to get values from and compare them with process variables?
Discussion posts and replies are publicly visible
I just found another way of doing it. Usnig a CDT to send the message between processes. I would rather prefer to use a generic json message, but this will do it.
If someone have a better way of doing it, please share...
Why do you send messages between these processes?
I use the process A as the main process that execute a few steps, then it needs to wait for an external signal. The signal I need comes from our external enterprise messaging system. So, I have this process B that receives all the signals from a given enterprise messaging flow, checks the message content for potencial match and if it's match, I send the message to process A that continues with business flow.
I think it was a question which had more the content like "why not using sub-processes instead of messaging?"You can give your variables just to the specific sub process quite easy
Assuming I change to a sub-processes approach, how can I send this event (which is coming to Appian using an Web API that I've exposed) to the sub-processes?
you dont need to send it then.You are using your subprocess event just for triggering and transfering data to the subprocess.Both are basically done by the core functions of a subprocess node.please check the following link for subprocess funcitonality:docs.appian.com/.../Sub-Process_Activity.html
Are you sending it as web api between two applications?
Is it best practice have a synch. sub-process that waits for an external event and then returns the result to the main process? Instead of having the main process itself waiting for the vent?
The event will came from an external (non Appian) app that sends the event to Appian using web api.