BPM, Workflow, and Case

BPM, Workflow, and Case

Come for answers. Stay for best practices. All we’re missing is you.

 View Only
  • 1.  Document version attached to workflow

    Posted 11/14/22 07:20 AM
    I use an entrytemplate for a document. In the entrytemplate a workflow (A) is called. At the start of the workflow a second version of the document is created (pdf) using a bespoke procedure. The workflow steps after that are on this second, major version of the document.

    I have created another workflow (B) which emulates the entrytemplate by creating a (text) document (using the createDocument procedure in CE_Operations) and then starting the workflow A with this document. Workflow A then at the start creates the second version. It then turns out that the workflow A steps after that are on the first, minor version of the document. This is wrong for my purpose. Can anyone explain this?

    ------------------------------
    Jan Breg
    ------------------------------


  • 2.  RE: Document version attached to workflow

    Posted 11/15/22 03:21 PM
    Hi, maybe you should set MajorVersion = 1 and MinorVersion = 0 properties in propsArray (java.lang.String[] propArray). That should result in adding document as you expected.




    ------------------------------
    Jaroslaw Lukaszewicz
    ------------------------------



  • 3.  RE: Document version attached to workflow

    Posted 11/17/22 03:24 AM
    Jaroslaw, thank you for your thoughts. I tried the added properties, but they are both read-only. I get an error when adding these properties in propsArray.

    ------------------------------
    Jan Breg
    ------------------------------



  • 4.  RE: Document version attached to workflow

    Posted 11/16/22 02:27 AM
    Hi Jan,

    I'm not sure whether I correctly understand your setup, but could the difference be that the regular entry template which is used to trigger create the initial document and launch workflow A is creating a major version of that document whereas your workflow B creates a minor version of when adding the document?

    Best regards,
    Michael

    ------------------------------
    Michael Kirchner
    Leading Technical Specialist - Digital Business Automation
    IBM Technology
    Germany
    ------------------------------



  • 5.  RE: Document version attached to workflow

    Posted 11/17/22 04:12 AM
    Hello Michael,

    I checked what kind of document is created by my workflow B. For this purpose I removed the call of workflow A from workflow B. I then get just the initial document. This has MajorVersionNumber 1 and MinorVersionNumber 0.

    Sincerely, Jan

    ------------------------------
    Jan Breg
    ------------------------------