Pushing a workflow attribute to a soft type document
I have pushed attributes from a Change Activity to a Change Notice upon completion of the activity. Now what I would like to do is push an attribute from a document approval workflow to a soft type of document. I have defined a workflow variable called string1 as type java.lang.String and also a variable parentDocument of type wt.doc.WTDocument. I tried to use the logic that I had but I am getting an error. It would be great if this possible.
Here is my transition code:
com.ptc.core.lwc.server.LWCNormalizedObject obj=new com.ptc.core.lwc.server.LWCNormalizedObject(parentDocument,null,null, new com.ptc.core.meta.common.UpdateOperationIdentifier());
obj.load("string1");
obj.set("string1",internal_name_string_on_softtype);
obj.apply();
wt.fc.PersistenceHelper.manager.modify(parentDocument);
The error I get when I check the syntax is:
warning: Supported source version 'RELEASE_7' from annotation processor 'com.microsoft.azure.management.apigeneration.LangDefinitionProcessor' less than -source '1.8'
WfExpression_10802.java:43: error: cannot find symbol
obj.set("string1",internal_name_string_on_softtype);
^
symbol: class hoshinet
location: package com
Note: WfExpression_10802.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: WfExpression_10802.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 error
1 warning
Syntax check complete.

