Start Subprocesses within a Process

 

In real life porcesses start within a process that is already running. AutoScript has the apropriate tools to handle this situation.

When there is a need to call a Coordinator Agent within a Coordinator Agent, that is already running, we use code like the following:

ag   = agent_create("AGENT_NAME")
call agent_run ( ag, param1, param2, param3, .... )
call agent_free ( ag ) 

 

When there is a need to call an Expert Agent we use code like the following:

ag   = agent_create("AGENT_NAME")
call agent_run ( ag, param1, param2, param3, .... )

 

In the second situation the "child" agent is freed by the system and not from the programmer.