Activate an Agent
During the menu building, we can put code to create and activate a running instance of an agent. We can do the same within AutoScript in any context, i.e., conventional code or agent code.
call bpm_startagent(agentname,p1,p2,..,p10)
call bpm_startplanner(agentname,p1,p2,..,p10)
call bpm_startcoordinator(agentname,p1,p2,..,p10)
call bpm_startexpert(agentname,p1,p2,..,p10)
All the above AutoScript calls do the same thing. Create an instance of the agent agentname and start it. The parameters p1..p10 are optional (to transfer information to the agent at startup). The *scheduler, *coordinator, *expert differentiations clarify the agent calling. The kosmosBOS creates an agent with the same name but a new id (i.e., 1002, 2004, etc.). All are instances of the same agent.