Community Tip - You can Bookmark boards, posts or articles that you'd like to access again easily! X
I have created a wtdocument softype that kicks off a workflow when created. I am trying to pull a string attribute and assign a workflow variable the value of the attribute. However, the variable is not getting set.
I have a class file with the following code:
public static String getIBAString(WTObject pbo, String ibaName) throws WTException, RemoteException {
String retValue = ";
IBAHolder ibaHolder = (IBAHolder) pbo;
ibaHolder = IBAValueHelper.service.refreshAttributeContainer(ibaHolder, null, null, null);
DefaultAttributeContainer defAttCont = (DefaultAttributeContainer) ibaHolder.getAttributeContainer();
AttributeDefDefaultView attDef = IBADefinitionHelper.service.getAttributeDefDefaultViewByPath(ibaName);
AbstractValueView attValue[] = defAttCont.getAttributeValues(attDef);
if (attValue.length > 0 && attValue[0] instanceof StringValueDefaultView) {
retValue = attValue[0].getLocalizedDisplayString();
}
return retValue;
}
I am adding the followingexpressionto the start transition of the workflow specialProcess1 is the workflow variable and specialProcess is the wtdoc softype attribute.
specialProcess1 = com.fnmfg.FNWorkflowUtility.getIBAString((wt.fc.WTObject)primaryBusinessObject , "specialProcess");
This works when I am pulling the attribute from a change request so I am unsure where I am going wrong.
Thanks Steve I will give this a try.