cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Where to write the code?

SOLVED

Re: Where to write the code?

I can't read Cyrillic (assuming it is Cyrillic), but what you have under Current Processes: are the two processes you should be modifying. The Life Cycle State for Promotion is the state user picks when promoting the object, and the workflows are the two options. You have another Preference for All states, and therefore it might be the one more applicable to your case, not the Test18 In Analysis one that you have highlighted, unless you are testing those workflows only.

Re: Where to write the code?

yadavankur, thank you, the right template was found, but now there is a problem with the code. Tell me, please, what type should have a variable obj ? I've tried every type I know, but I haven't passed the test

 

Checking Syntax...
warning: Supported source version 'RELEASE_7' from annotation processor 'com.microsoft.azure.management.apigeneration.LangDefinitionProcessor' less than -source '1.8'
WfExpression_11.java:54: error: cannot find symbol
obj = results.nextElement();
^
symbol: variable obj
location: class WfExpression_11
WfExpression_11.java:55: error: cannot find symbol
if (obj instanceof wt.doc.WTDocument)
^
symbol: variable obj
location: class WfExpression_11
WfExpression_11.java:57: error: cannot find symbol
var += obj.getName ()+","; // var is a global variable
^
symbol: variable obj
location: class WfExpression_11
Note: WfExpression_11.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
3 errors
1 warning

Syntax check complete.

Re: Where to write the code?

Try wt.fc.Persistable:

 

wt.fc.Persistable obj = results.nextElement();

Re: Where to write the code?

 

zsternal-2, thanks for your suggestion, but it still didn't work out (

 

Checking Syntax...
warning: Supported source version 'RELEASE_7' from annotation processor 'com.microsoft.azure.management.apigeneration.LangDefinitionProcessor' less than -source '1.8'
WfExpression_11.java:57: error: incompatible types: Object cannot be converted to Persistable
obj = results.nextElement();
^
Note: WfExpression_11.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 error
1 warning

Syntax check complete.

Re: Where to write the code?

Okay! Try using Object then:

 

Object obj = results.nextElement();

 

And if that doesn't work use java.lang.Object.

Re: Where to write the code?

 

zsternal-2, tried, but the result is the same
Announcements
LiveWorx Call For Papers Happening Now!