IDE & Navigation
Properties & Tools
Remote Trigger Plugin automatically sends the state and transition traversal event triggers to the remote agent as MBT model is being executed.
Upon receiving the state and transition traversal event triggers, the remote agent then performs the action accordingly. After the action is performed, the agent responds to the server with the execution result and obtains next state and transition traversal event trigger.
The remote agent can be written in any programming language which supports http requests. That is, if you can call an url and parse the result returned from a remote web server, you can write the remote agent.
Below is a pseudo code for a typical remote agent:
http://localhost:8888/MbtSvr/app=agentsvc&action=regAgent&mbtFile=xxx Return: localhost:6049
You may pass FAIL for “status” param which will cause the state/transition to fail and the value in “result” param will be the exception message.
Return from "nextCmd":
By default, this plugin is different from RemoteCommandPlugin which allows you to send a specific command to the remote agent instead of the the triggers that correspond to the traversing of states and transitions. However, you can use this plugin to also run mScript like RemoteCommandPlugin by following the instruction described in RemoteCommandPlugin.
Additionally you may have remote agent callback to the server to retrieve data: dataset, user var and system var.