Hi,I have to customize Webtop's Start Attachemnts component and I have to get the selected business process id.Could you please help me.
You will probably have to move this discussion to the developer section.
This is for WebTop version 5.3:
The following action gets invoked, when you click on Tools --> Workflow --> Start Attachments
<!-- start workflow from doc action --> <action id="startworkflowfromdoc"> <params> <param name="startworkflowId" required="false"/> <param name="objectId" required="true"/> <param name="ownerName" required="false"/> </params> <preconditions> <precondition> <argument>startworkflowId</argument> </precondition> <precondition> <role>contributor</role> </precondition> </preconditions> <execution> <container>startworkflowtemplatelocatorcontainer</container> <component>alluserwftemplatelocator</component> </execution> </action>
If you like to retrieve the process ID (r_object_id of dm_process) of the selected workflow template, take a look at the <container> and <component> tags in the above XML. The component is userwftemplatelocator_component.xml (\webcomponent\config\library\workflow) and the container is startworkflowtemplatelocatorcontainer_component.xml (\webcomponent\config\library\workflow\startworkflow). Look at these files and customize the appropriate classes to achieve your requirement.