I am looking for some advice on the best way to call a receiveTask from an external system. Most of the examples I have seen so far seem to listen for events from the process engine but I am after a way to listen for events/messages from external systems and to be able to correlate these events to a receiveTask using a process variable or something similar.
I have had a look through the forum for similar topics and the only thing I could find was this: http://forums.activiti.org/en/viewtopic.php?f=3&t=368, which didn't seem to help. The REST API appears to provide the ability to retrieve a list of tasks but not the ability to search for a task or process instance using a process variable and then to send a signal to this instance.
You would obviously need to be able to pass the executionId you want to signal in the receiveTask to the external system. You would also need some listener for the external messages (eg JMS) that receives the message and calls the runTimeService using the provided executionId.