from psdi.common.action import Action, ActionRemote
from psdi.security import UserInfo
from psdi.server import MXServer
mxServer = MXServer.getMXServer()
userInfo = mbo.getUserInfo()
actionSet = mxServer.getMboSet("ACTION", userInfo)
actionSet.reset()
actionSet.setWhere("action = 'INV_RUN_REP'")
if(not actionSet.isEmpty()):
action = actionSet.getMbo(0)
action.executeAction(mbo)
actionSet.close()
Top Navigation
Showing posts with label action. Show all posts
Showing posts with label action. Show all posts
Sunday, 20 December 2020
Invoke Action from Automation Script | IBM Maximo
Tuesday, 13 February 2018
Stop Workflow in BULK by Escallation | IBM Maximo
Lets say we want to stop the workflow for multiple PRs at once. We can achieve this creating a new escalation and schedule it perform this action automatically.
for instance, we want to stop PR-123 from backend, for that we are going to create a escalation and once action which will be attached with this escalation.
STOPWF_PR Stop PR Workflow
Applies to: WFINSTANCE
Escalation point: Add a row only, no need to enter anything
Action : STOPWF
Create a new action and attached to this escalation
Action: STOPWF Stopwork
Type: Custom Class
Custom Class: psdi.workflow.StopWorkflowAction (auto populated)
Accessible from:
ESCALATION
for instance, we want to stop PR-123 from backend, for that we are going to create a escalation and once action which will be attached with this escalation.
STOPWF_PR Stop PR Workflow
Applies to: WFINSTANCE
Condition:Schedule: Your desired time and date. suppose every 1 minute
active = 1 and ownertable = 'PR' and exists (select 1 from PR where PR.PRID = wfinstance.ownerid and prnum in ('PR-123')
)
Escalation point: Add a row only, no need to enter anything
Action : STOPWF
Create a new action and attached to this escalation
Action: STOPWF Stopwork
Type: Custom Class
Custom Class: psdi.workflow.StopWorkflowAction (auto populated)
Accessible from:
ESCALATION
Subscribe to:
Posts (Atom)