Start Subprocesses within a Process

  • Edit

 

(this methodology in an older one and has changed!)

In real life, processes start within a process that is already running. AutoScript has the appropriate 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.