1115
Points
Questions
0
Answers
17
-
Few things which you can try
1) Don’t use Arrays.asList instead put a normal array. I had a similar problem and it worked after I removed Arrays.asList
2) I used the below snippet code for list updationfor(String indListVal:listVals) {
selectionType[count] = new SelectionType();
selectionType[count].setValue(indListVal.trim());
count++;
}
listType.setSelection(selectionType);
MessageElement messages_list = new MessageElement(namespaceUri, listAttribName);
messages_list.addAttribute(namespaceUri, SchemaConstants.attributeId.getValue(), baseid);
messages_list.addAttribute(XSIPREFIX, COMMONNAMESPACEURI, SchemaConstants.type.getValue(), “AgileListEntryType”);
messages_list.setObjectValue(listType);
- 2428 views
- 2 answers
- 0 votes
-
- 2428 views
- 2 answers
- 0 votes
-
If you want this to be dynamic i.e. there are many criterias in your workflow and your px should dynamically determine that then you need to get the criteria object (ICriteria), get the condition and validate the rule against your change object. If your list of criterias are going to be just 5 or 10 then just hardcode those conditions in your program and on the next status you can just validate condition A/B/C/D and populate the attribute values dynamically. Hope this helps..
- 1679 views
- 2 answers
- 0 votes
-
- 1957 views
- 2 answers
- 0 votes
-
- 1760 views
- 1 answers
- 0 votes
-
In Agile the SDK can not add a user with Job function as approver. Oracle has an open bug for that and not sure if that is resolved in 935. So my assumption is you are facing the issue on a similar line wherein the approval not happening via SDK if that approver is having a job function tied to it.
For adding an approver with job function we had tried the coreservices route (Collaboration services) to add an approver to a change with Job function. So can you try to use Collaboration webservice instead of SDK. It may work. Give it a try..
- 2135 views
- 2 answers
- 0 votes
-
There could be many reasons for this error, I am not sure how to debug this in SoapUI. However you can try these to confirm if your request XML is correct. Try updating a text attribute like description of change or reason for change attribute and for updateObject tag set the >http://xmlns.agile.com/AgileObjects/Core/Business/V1. Can you also let me know the webservice URL which you are passing in SOAP UI.
- 3754 views
- 9 answers
- 0 votes
-
- 3754 views
- 9 answers
- 0 votes
-
I am not sure what could be the reason may be problem with the attributeid value which you had given. Can you check whether that is the baseid of that attribute. I write java programs using stub. Do you use java stub ? if so then you can try the below sample code and get the xml.. this will tell a detailed error message
AgileRowType updaterows = new AgileRowType();
UpdateObjectRequestType updateObjectRequestType = new UpdateObjectRequestType();
AgileUpdateObjectRequest agileUpdateObjectRequest[] = new AgileUpdateObjectRequest[1];
agileUpdateObjectRequest[0] = new AgileUpdateObjectRequest();
agileUpdateObjectRequest[0].setClassIdentifier(“Part”);
agileUpdateObjectRequest[0].setObjectNumber(number);AgileListEntryType List = new AgileListEntryType();
SelectionType[] listType = new SelectionType[1];
listType[0] = new SelectionType();
listType[0].setValue(“listvalue”);
List.setSelection(listType);MessageElement messages_cat = new MessageElement(namespaceUri, “ATTRIBUTE_NAME”);
messages_cat.addAttribute(namespaceUri, SchemaConstants.attributeId.getValue(), “BASEID”);
messages_cat.addAttribute(XSIPREFIX, COMMONNAMESPACEURI, SchemaConstants.type.getValue(), “AgileListEntryType”);
messages_cat.setObjectValue(List);updaterows.set_any(allMessages);
agileUpdateObjectRequest[0].setData(updaterows);
updateObjectRequestType.setRequests(agileUpdateObjectRequest);
UpdateObjectResponseType updateObjectResponseType = stub.updateObject(updateObjectRequestType);- 3754 views
- 9 answers
- 0 votes
-
- 2761 views
- 4 answers
- 0 votes