BPM, Workflow, and Case

 View Only
  • 1.  Changing Process Instance Title in Process Portal

    Posted Thu October 28, 2021 09:28 AM
    Currently I have a process instance title defined in the Process Overview > Details > Instance Name field with some static strings concatenated with local variables. Updating these local variables works while the process is flowing through activities in the parent process. The problem is the title change will be happening in a linked process. Even when this title variable is changed to a reference variable (making a BO and passing it to the linked process), changes to this variable does not produce changes in the process instance title.

    Furthermore, system data such as tw.system.processInstance.name seem to be purely information.

    The title field seems to only updates when process flow happens in the parent process. Moving the steps out from this linked process to the parent process to facilitate this title change would be not be an ideal change for our current processes.

    Is there a way to implement this title change while in the linked process?

    ------------------------------
    Nathan Vore
    ------------------------------


  • 2.  RE: Changing Process Instance Title in Process Portal

    IBM Champion
    Posted Thu October 28, 2021 11:01 AM
    Basically, you need to manually set the process instance name inside the linked process -  
    tw.system.currentProcessInstance.name = "Some Name";​
    Hope this helps.

    ------------------------------
    Atanu Roy
    Solution Architect
    Salient Process
    ------------------------------



  • 3.  RE: Changing Process Instance Title in Process Portal

    Posted Mon November 08, 2021 08:36 PM
    So the problem with my approach was trying to update tw.system.processInstance.name in a script in a client-side human service. Changing this variable has no effect on the title even though it appears to be the current process instance (and the current process instance title).

    Calling a service instead and updating tw.system.currentProcessInstance.name did update the title properly. Thank you for your help!

    ------------------------------
    Nathan Vore
    ------------------------------



  • 4.  RE: Changing Process Instance Title in Process Portal

    Posted Tue November 02, 2021 05:32 AM
    Edited by Mattias Edling Tue November 02, 2021 05:34 AM
    I have a vague memory of once putting an event subprocess in the top process and notifying it via UCA so that top-level process variables, in particular those marked as searchable business data (for display in the process portal or for TWSearch), were updated explicitly as needed. Sort of a hack, but ...

    ------------------------------
    Mattias Edling
    ------------------------------