123
Points
Questions
32
Answers
52
-
- 2631 views
- 2 answers
- 0 votes
-
Direct 9.3.3 WS code will not work in 9.3.6.
Very high level, there are 2 changes :
i) You need to use JAX-WS annotations to define a web service
ii)This reference needs to be added in the META-INF folder.This answer accepted by Divakar. on April 19, 2024 Earned 15 points.
- 1942 views
- 2 answers
- 0 votes
-
- 1942 views
- 2 answers
- 0 votes
-
- 3166 views
- 11 answers
- 0 votes
-
- 3166 views
- 11 answers
- 0 votes
-
- 3166 views
- 11 answers
- 0 votes
-
Here i am pasting the peace of code EventActionResult , Which now i have changed to POST.
In this i am throwing exception if Parent Lifecycle is greater than its child.
if(strItemNos.length()>0){
throw new Exception(strItemNos);public EventActionResult doAction(IAgileSession session, INode pxNode,
IEventInfo req) {
try {int eventType=req.getEventType();
int triggerType=req.getEventTriggerType();
/*
if(eventType!=EventConstants.EVENT_CHANGE_STATUS_FOR_WORKFLOW || triggerType!=EventConstants.EVENT_TRIGGER_PRE)
return new EventActionResult(req, new ActionResult(ActionResult.STRING,”The PX is only applicable for pre relationship update event.”));
*/if(eventType!=EventConstants.EVENT_CHANGE_STATUS_FOR_WORKFLOW || triggerType!=EventConstants.EVENT_TRIGGER_POST)
return new EventActionResult(req, new ActionResult(ActionResult.STRING,”The PX is only applicable for Post relationship update event.”));IWFChangeStatusEventInfo info=(IWFChangeStatusEventInfo)req;
IChange eco = (IChange)info.getDataObject();
eco.logAction(“BOM Lifecycle Check starts: “);ITable tab=eco.getTable(ChangeConstants.TABLE_AFFECTEDITEMS);
Iterator iter = tab.iterator();
strItemNos =””;
List<String[]> pList = new ArrayList<String[]>();cList.clear();
pList.clear();while (iter.hasNext()) {
IRow row=(IRow)iter.next();Object lcpObj = row.getValue(ChangeConstants.ATT_AFFECTED_ITEMS_LIFECYCLE_PHASE);
String lcp = lcpObj==null? null:lcpObj.toString();//check if AI bom’s lifecycle order is ok
//boolean bomLCPOrderOK = checkBOMLCPOrder(session, lcp, row.getReferent());boolean isRedlined = row.isFlagSet(ChangeConstants.FLAG_AI_ROW_HAS_REDLINE_BOM);
//System.out.println(“isRedlined >> “+isRedlined);IItem item = (IItem) row.getReferent();
//eco.logAction(“Parent Item >> “+ item.getName());
//eco.logAction(“Parent Item >> “+ item.getName()+lcp);String[] pItem = {item.getName(), lcp};
pList.add(pItem);
//eco.logAction(“PList >> “+ pList.toString());boolean bomLCPOrderOK = checkBOMOrder(item, lcp, row.getReferent(), isRedlined);
}
checkBOMLife(pList, cList);
eco.logAction(“BOM Lifecycle Check Successfully executed : “+strItemNos);if(strItemNos.length()>0){
throw new Exception(strItemNos);
}return new EventActionResult(req,new ActionResult(ActionResult.STRING,”Success”));
} catch (Exception e) {
e.printStackTrace();
return new EventActionResult(req, new ActionResult(
ActionResult.EXCEPTION, e));
}
}- 3166 views
- 11 answers
- 0 votes
-
- 3166 views
- 11 answers
- 0 votes
-
- 3347 views
- 4 answers
- 0 votes
-
- 2545 views
- 6 answers
- 0 votes