Workflow Soluiton

 View Only
  • 1.  Pick your own Tracking ID?

    Posted Aug 06, 2015 09:46 PM

    Is it possible to create a Workflow Process with a specific Tracking ID?

    This might be a bad idea but I have an external guid that I have from a source outside Workflow and if I could use the same guid in the Tracking ID then it would help reporting between the two.

    Does anyone knwo if this is possible?



  • 2.  RE: Pick your own Tracking ID?
    Best Answer

    Posted Aug 06, 2015 11:21 PM

    that's how it's done in ServiceDesk.  i believe you'll need to publish your workflow that will create your ticket, and then call that workflow as a service call with another (probably webform is easiest) workflow project.  pass the "SessionId" through as a URL parameter.

    short answer: when you check the box on the Publishing tab that says "Allow External Workflow Tracking IDs" and then you publish the workflow, it automatically creates an input parameter for the sessionid (a.k.a. Workflow Tracking ID) for the webservice for that workflow..

    So, the long answer:

    1. prior to publishing, ensure "Allow External Workflow Tracking IDs" is set to "True" (this is on the Publishing tab)
    2. publish your workflow
    3. capture the URL (e.g. http://WF76A/TestWorkflow01/MyService.asmx)
    4. create an integration project
    5. add a web service caller generator
    6. from URL: (e.g. http://WF76A/TestWorkflow01/MyService.asmx)
    7. ensure "ExecuteWithWorkflowTrackingIDComponent" is available and selected in the Components section.  if this isn't in the list, then go back to number 1 above and ensure it was set properly and then published afterwards.
    8. in another, separate webform project, load the integration library into the project.
    9. use the "ExecuteWithWorkflowTrackingIDComponent" and map in whatever GUID you want the session id to be.  ensure the URL is correct in the component.
    10. rejoice

    let me know if you want to have a look at a demo; i put one together to ensure i didn't miss anything in the steps i typed in up there ^^^.



  • 3.  RE: Pick your own Tracking ID?

    Posted Aug 06, 2015 11:33 PM

    And here was me hoping there was a component for that :-)



  • 4.  RE: Pick your own Tracking ID?

    Posted Aug 07, 2015 01:44 AM

    perhaps there is!  that's the only way i've found to do it, though.



  • 5.  RE: Pick your own Tracking ID?

    Posted Aug 11, 2015 04:54 AM

    Thanks for this answer Andrew.  The only change I made as I added a new model to my original project, used the component created by the integration web service project and added that model as an invocation target.



  • 6.  RE: Pick your own Tracking ID?

    Posted Aug 11, 2015 03:58 PM

    Ah - good idea!