Community Tip - Did you know you can set a signature that will be added to all your posts? Set it here! X
I have a doc type that when created, it launches a Workflow for that object. I am generating a custom report page to show the details of this Document as well as the process. I have been able to get the associated process and list the Creator, Context, Workflow Name, etc.....however, I can't figure out how to list the activities that show up under the Routing/Process Status and the information for these tasks. Can someone please point me in the right direction. Haven't figured out how to get this info from the process information I already have.
Thanks,
James
I should have mentioned this is being done through JSP and not Query Builder. So to get a list of the Activities, I can go down the path of LC instance, to WF Instance, to Assigned Activity? I have attached an image of the Routing/Process Status to show the activities listed.
In Reply to Mike Lockwood:
* Your document is the "PBO" (Primary Business Object)
* The PBO is related to a Lifecycle instance
* The LC Instance starts a Workflow instance (in a report you can directly relate the Workflow instance to the PBO though)
* The workflow instance creates an Assigned Activity for each workflow template Activity
* Each Assigned Activity generates one or more Work Items - depending on how many people are resolved to be in the Role
Attempt to add Work Items to your existing Report. Note that by default Work Items are temporary and are deleted (via queue) when they get to a certain number for each user.
I was in a similar situation once (digitizing paper process in Windchill). One of the business requirement was to be able to download information to local computer (mostly by managers). So soft type of WTDocument was an easy choice.
you can use below API to get all Process related to object
you can use below API to get the Activities related to Process.
// ObjectIdentifier oid = ObjectIdentifier.newObjectIdentifier("wt.workflow.engine.WfProcess:60318");
wt.fc.collections.WTCollection auditCol = wt.workflow.engine.WfEngineHelper.service.getVotingEvents(seed, null, null, null);
java.util.Iterator auditEvents = auditCol.persistableIterator();
wt.workflow.engine.WfVotingEventAudit audit = (wt.workflow.engine.WfVotingEventAudit) auditEvents
if (audit!=null){
System.out.println("\tUser Role ===>" + audit.getRole());
System.out.println("\tComplete Time ===>"
}else{
}
Shreyas