Maximo

 View Only
  • 1.  How to restrict Job Plan Status Change for Workflow

    Posted Fri February 16, 2024 03:24 PM

    I want to allow the Job Plan record status change option either visible or allowable only to those people who are currently assigned in the Job Plan Workflow.

    How to achieve this.



    ------------------------------
    souvik dutta
    ------------------------------


  • 2.  RE: How to restrict Job Plan Status Change for Workflow

    IBM Champion
    Posted Sun February 18, 2024 05:09 PM
    Edited by Craig Kokay Sun February 18, 2024 05:12 PM

    You can control the ability to use/not use the status change when the record is in Workflow.  There are three actions:

    The easiest concept is to set the NOSTATUS to stop people changing the status and revoke the ability to change the status.  Workflow will be able to override this and make a change providing that whenever further down the flow you want the status to change you need to issue:

    1. OKSTATUS
    2. The intended status change.
    3. NOSTATUS  -- unless this is the last status to be changed to like for Job Plan it could be ACTIVE.  Why ACTIVE?  With JP revisioning, it is read-only and you can only revise the JP.

    I'd advise never to issue a PVSTATUS.  You cannot come back from this.



    ------------------------------
    Regards, Craig Kokay
    Principal Consultant, COSOL
    https://cosol.global/

    Ph: +61-411-682-040
    email: craig.kokay@cosol.global
    #IBMChampion
    ------------------------------



  • 3.  RE: How to restrict Job Plan Status Change for Workflow

    Posted Sun February 18, 2024 08:42 PM

    Hi Craig,

    Thanks for the reply.

    My requirement is to show or give the status change option for the Job Plan record only to those persons who are currently assigned to the Job Plan workflow.

    Could you please let me know if this solution will meet this purpose.

    Thanks,

    Souvik



    ------------------------------
    souvik dutta
    ------------------------------



  • 4.  RE: How to restrict Job Plan Status Change for Workflow

    Posted Mon February 19, 2024 12:12 AM

    If I understtod correctly, then jobplan creates so called acctivities under workorder, and uses the same status what workorder is using. So, that is wostatus domain. It should be then possible to set condtions for each status value. Condition needs to be writed with some if else statement, to filter cases for workorder it self and activity. 

    https://bportaluri.com/2018/08/restrict-allowed-status-changes.html



    ------------------------------
    Juris Flugins
    ------------------------------



  • 5.  RE: How to restrict Job Plan Status Change for Workflow

    IBM Champion
    Posted Mon February 19, 2024 01:09 AM

    So, let's step back.  What you're actually after (in my words) is the Change Status menu option in the Common Actions menu.

    1. You need to create a Conditional Expression that checks if the person is in the WFASSIGNMENT table for the current Job Plan with an active assignment.  Along the lines of this conditional expression (sample - concept only).
    2. Open the Security group application.
    3. Select the Applications tab.
    4. Find the Job Plan application
    5. Ensure you have grants READ and SAVE (you may have to save before the next step is available).
    6. Select the Change Statis option.
    7. Enter the Conditional Expression name into the Condition field.
    8. Save.
    9. Exit
    10. Try it out



    ------------------------------
    Regards, Craig Kokay
    Principle Consultant, COSOL
    https://cosol.global/

    Ph: +61-411-682-040
    email: craig.kokay@cosol.global
    #IBMChampion
    ------------------------------



  • 6.  RE: How to restrict Job Plan Status Change for Workflow

    Posted Mon February 19, 2024 05:25 PM

    Hi Craig,

    Thanks.

    After replying on yesterday I checked one blog and found this can be done by the creating condition in conditional manager and attaching the query with sig option. So I tried it by creating a query and with my query I am restricting on specific status. But I will try with your approach also and will update you on this.



    ------------------------------
    souvik dutta
    ------------------------------



  • 7.  RE: How to restrict Job Plan Status Change for Workflow

    Posted Wed March 27, 2024 08:10 AM

    Hi Craig,

    Could you please help me to know how I can fetch the current jobplan dynamic way to use in the conditional expression manager

    I have tried using like this but it is giving error

    jpnum = :&jpnum&



    ------------------------------
    Souvik Dutta
    ------------------------------



  • 8.  RE: How to restrict Job Plan Status Change for Workflow

    Posted Fri March 29, 2024 07:27 AM
    Edited by Suhas Joshi Fri March 29, 2024 07:29 AM

    Hi Souvik,

    Extending to what Craig said above, and if you want to check for current jobplan, you need to extend Craig's condition and add additional where clause - "and ownerid=:jobplanid". I am assuming jobplanid is used as ownerid in wfassignment table.

    Thanks,

    Suhas

    #IBMMaximo

    ------------------------------
    Suhas Joshi
    Pune
    ------------------------------