| URI: | http://www.xmlpipe.org/xpe/agent/filter/agent |
| Type: | filter |
| Namespace: | http://www.xmlpipe.org/xpe/agent |
| Owner: | http://www.xmlpipe.org/xpe/agent |
This filter instructs an agent to invoke services automatically.
The above request creates an instance of an agent of the given type specified by the type attribute. If an agent with the given name already exists, it will just updates the instance by tring to start the agent again if it is currently stopped. Depending on the type of agent, it will send a request to the target URI by either GET or POST.
The above request will instruct the agent to stop as soon as it finishes its current task. This is the preferred way to stop an agent.
The above request will try to interrupt the agent and make it stop.
The agent is created when the type attribute is set to "invoker" when updating an agent. The invoker will send the following XML request to the target URI by the POST method:
The invoked service then reacts to this request. The serivce can then do other things and returns the following response:
If the hasMore attribute is "true", the agent will then POST the response as it receives back to the service again. This process continues until the service sets the hasMore attribute to "false".