Community Tip - Learn all about PTC Community Badges. Engage with PTC and see how many you can earn! X
Anyone have & can share some snippets about how to programmatically start a workflow (i.e., via Java or SOAP?)
I see the Start-Workflow webject (and /com/ptc/windchill/ws/StartWorkflow.xml task), and the Java StandardWorkflowService API,but am not yet up to speed on workflows (templates, workflow objects, priority, etc.), so any practical example(s) would really help.
Thanks for any advice and/or examples!
-- Marty
Thanks for the tip!
Clarifying the business requirement, it seems that we want to create a change request, which if I understand correctly will kick off the workflow.
Can you (anyone?) suggest the highest-level, easiest to use and/or most troublefree API thatwe might use to develop a SOAP webservice that can be used by an external agent to create a change request in Windchill?
Would a (SOAPified) task to call the "Create-Object" webject do the trick, and/or be the best way to go for this?
Update: in fact, it's a Change Notice -
OK, so I've studied a bit more, and found a set of objects (with enough of an operational description for me to work with, in the PDMLink 9.1 BusAdminGuide) that might be relevant:
I suppose, depending upon the results of our requirements discovery, any of these (or other) candidate objects could be selected as needing to be created by the target webservice(s). I'm now wondering what's the best way for us to learn how to create these objects programmatically - i.e., what Java API and/or Webject is the best choice, and what input parameter(s) or precursors are needed for each?
In Reply to Marty Ross:
Thanks, Tom!
After studying this a bit, I realize I still need more context /
background about Windchill workflows, and the APIs.
For one, I'm not familiar with the difference between a Change Request and
a Change Notice, and that seems pretty key to the direction I'm headed
now.