Can nebody plz explain me how the business object is instantiated in workflow.
For example: a workflow is started for the business object BUSXXXX, the workflow template has got a task which uses a instance method of a different business object BUSYYYY. So when does the object BUSYYYY gets created. Becuase without the object, the method can not be executed. i believe.
At what point, the BUSYYYY instance gets created and what are the atrributes to be binded between the wf template and the task containers which uses BUSYYYY.
Thanks in advance
you will need some piece of coding that says
swc_create_object busXXXX 'BUSXXXX' primary_key.
and this is passed back to the workflow (in a separate step) before the call may happend. This is usually done in an istance-independant method of any object.
You may also use the instance-creation wizard if you have the primary key already available in a container elelemtn.
Alternatively the appropriate business object instance has some link between the one you have and the one you need (e.g. the vendor-object in an invoice-verification object BUS2081): Then it may be well implemented as a virtual attribute instead (with kinda the same coding behind the scenes).