Maximo Open Forum

 View Only
  • 1.  Workflow solution. Is it optimal, despite its ugliness?

    Posted 12-15-2022 10:28
    NOTE: crossposted from an IBM forum as well, searched for "Worklow" topic but didn't see one.

    We have a workflow that wants to assign a task to a group default member. Formerly, it assigned the task to all group members, and now we have the requirement to send to only one person. (I felt uncomfortable just putting someone's name in a role, even if the role was called "Last Person to Approve", because I believe over time the persongroup is going to more useful -- eventually "Use for Site" and "Use for Org" will be exploited properly.)


    I retained my original persongroup "X", and now by convention the group default will be "The Person" for these assignments. Happily if the person needs to change, we add to the group and check the "Group Default" box. Okay, so still good design.

    Where I am unhappy with the solution is the traversal in the task to reach this individual. Part of me feels like it should be driven by the workflow, but maybe my brain got tired and I couldn't find a neat, elegant way to traverse the workflow back to the persongroup assigned to this.

    What I ended up doing was creating a relationship on the workorder to persongroupteam:
    WO2PGT = [persongroup = 'X' AND groupdefault = 1]
    and it feels wrong because this is basically a constant. Every workorder can see this persongroup now.

    I redefined an existing role, so a simple role to persongroup "X" is now:
    dataset/workorder/[:WO2PGT.RESPPARTY_PERSONS.personid]
    which feels data-driven but somehow wrong, because of that janky relationship I built.

    I suspect I could "get at" that persongroup another way, but ideally I'd like to have that persongroup specified in the workflow (and therefore workflow-specific and workflow-defined) and then traverse THAT to get to the group default of that PG.

    Did I lose everyone on this? Am I over-optimizing?

    Note, things I won't consider are automation scripts, new custom classes, etc. Those would be out of bounds for this, especially since I can roll a solution OOB.
    #MaximoApplicationSuite

    ------------------------------
    -C
    ------------------------------


  • 2.  RE: Workflow solution. Is it optimal, despite its ugliness?

    Posted 12-16-2022 09:29
    As an alternate possibility, maybe once the Workflow reaches that Task node, the next thing to do is use a Set Value action to grab who it is currently assigned to (via the WFASSIGNMENT relationship), and put that value in either a spare field or custom field on the Work Order.

    Or, if you're not using it for something else already, maybe you have it set the Work Order's Owner Group and/or Owner (yes, I know these are mutually exclusive, but if using Owner you can also use the ASSIGNEDOWNERGROUP attribute).

    Either way, this would avoid that custom relationship that you don't like.

    ------------------------------
    Travis Herron
    Pensacola Christian College
    ------------------------------



  • 3.  RE: Workflow solution. Is it optimal, despite its ugliness?

    Posted 12-16-2022 10:56
    Thanks Travis, your answer helps me clarify my intention, which is to select the group default of an arbitrary persongroup in a workflow, and make an assignment to only that group default.  My problem is really, how does the workflow know which persongroup to scan?  I am tying it to workorder, but ideally, I'd tie to the workflow.  There may be a solution in that using a SETVALUE.

    ------------------------------
    -C
    ------------------------------