AnsweredAssumed Answered

Retrieving the value of attributes in JavaTask

Question asked by jjfutt on Mar 16, 2012
Latest reply on Mar 21, 2012 by jjfutt
Hello:

I am trying to find out if in the implementation class of the JavaTask, if there's a way to retrieve the value of attributes from the corresponding Java Task in Orchestration flow, without explicitly declaring corresponding 'Expressions' in the JavaDelegate implementation class.

Details: Currently, to implement custom Java Task, we define the Java Task with some attributes as shown in the screenshot below:
[attachment=1]JavaTask-InterfaceScreenshot.png[/attachment]

Then in the implementation class that implements the JavaDelegate interface, we have to declare these attributes as 'Expressions', and then retrieve the values as shown in the screenshot below:
[attachment=0]JavaTask-ImplScreenshot.png[/attachment]

Q1: Is there a way to implement the JavaDelegate in such a way that we DON'T have to DECLARE the expression. Instead, we'd like to dynamically get a list of attributes (and their values) that were set in the Orchestration Java Tasks. This will allow us to implement a generic JavaDelegate implementation that can be used for multiple JavaTask nodes in the designer palette.

Thanks in advance.

Outcomes