Change Status for Workflow Event PX not getting triggered

Hi

 

I am relatively new to Agile PLM. Was trying to run a sample event px for Change Status for workflow event in Agile PLM v9.3.6, but is not getting triggered . No errors also shown.

Code is as below.

package com.agile.px;

import com.agile.api.*;

public class EventProcessExtension implements IEventAction {

@Override
public EventActionResult doAction(IAgileSession session, INode actionNode, IEventInfo eventObject) {
// TODO Auto-generated method stub

try{
IWFChangeStatusEventInfo currentObject =
(IWFChangeStatusEventInfo) eventObject;

// IEventInfo currentObject =
// (IWFChangeStatusEventInfo) eventObject;

IDataObject dataObject = currentObject.getDataObject();

IChange change = (IChange) dataObject;

// EventActionResult eventresult = new EventActionResult(eventObject,new ActionResult(ActionResult.EXCEPTION,”EventPX Success:” + change.getName() ));

EventActionResult eventresult = new EventActionResult(eventObject,new ActionResult(ActionResult.STRING,”EventPX Success:” + change.getName() ));

return eventresult;
} catch (APIException e){

//change

return new EventActionResult(eventObject,new ActionResult(ActionResult.EXCEPTION,”Failed EventPx Exception”));
}

}

}

 

What might be the issue? Thanks in advance.

Add Comment
1 Answer(s)

Hi Sabarish

Did you check the Change history for “User Defined Action” Action? That should have details on the event execution

If you are not seeing anything, there could be an issue in the way you configured the Event

– Raj

Agile Angel Answered on November 6, 2020.

The issue was that the global triggering events was disabled, so once enabled the issue was resolved.Thanks.

on November 8, 2020.

Ah ok. Makes sense

on November 9, 2020.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.