I am trying to get and set attribute values programmatically in a running workflow. In the trivial case, I just want to know the value of a text attribute. The code I have is as follows:
List<ApplicationData> dataList =
wfSvc.getWorkItemData(item.getProcessID(), item.getSubProcessID(), item.getID());
for (ApplicationData data : dataList) {
if (data instanceof AttributeData) {
AttributeData aData = (AttributeData) data;
AttributeGroupDefinition groupDef = aData.getAttributes();
The issue is that the AttributeData class is only able to give me the AttibuteGroupDefinition. What I of course want is the actual attribute values. I can see the values in the debugger but they must be protected properties. Any idea how to get to these values?
Thanks.