AutoScript
start_agent_info
AgentName = "AU_SETUP_BUSINESS_COORDINATOR"
AgentDescr = ""
PR_FNAME = ""
PR_TNAME = ""
AgentLanguage = ""
__delete_on_termination = 0 {....1=the agent frees itself when terminates its task}
end_agent_info
start_action
{.....a snipet of some action code is shown here...(CHANGE IT!!!)}
rec_id = __params[1] {....get input parameter (usualy the record id of starting form)}
comm = __params[2] {....maybe the comments are the second parameter}
call bpm_setprocedurecomment(comm) {.....set the procedures comment}
call bpm_setprocedureowner(__activation_user) {.....set the procedure owner}
call bpm_openatonce()
callwait bpm_assign_job ( "First Task Name" , __activation_user , "" , 0 , rec_id )
end_action