Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Attribute customization

How is the class name set in the Attribute customization section for a script?

0 votes

Comments

I am not sure I understand the scenario, can you please provide details?

In the RTC if you open a project, go to Process Configuration, Configuration Data, Work Items then Attribute Customization and choose a calculated value... you'll see the class name over to the right.

How is the class name set and what does it mean?



3 answers

Permanent link

In the RTC if you open a project, go to Process Configuration, Configuration Data, Work Items then Attribute Customization and choose a calculated value... you'll see the class name over to the right.

How is the class name set and what does it mean?

0 votes


Permanent link
As you can see in https://jazz.net/wiki/bin/view/Main/AttributeCustomization#API_Example and as described (I hope) in https://jazz.net/library/article/1093 lab 5 the class name is defined in the dojo.declare() statement and made visible outside using the dojo.provide() statement.


0 votes

Comments

Ok. How do you know what the dojo.declare statement is suppose to be ?

How do you know when it should be

com.example.ValueProvider or APIExample?

Well, you should use your own ID schema such as com.mycompany.script.something. You call it as you like. Just make sure provide and declare are the same and the ID is unique across your scripts.

How the rest of the class should look like (which funktion) is described in the links above and you get the right example code if you download it.


Permanent link
When seeing calculated value, the class name is only shown for "Script based calculated value" this is the class name that is defined in the attached javascript file. Check the javascript file for details of what the class.

0 votes

Comments

I'm making the javascript file but I do not know what the Class name should be in the script. How does the developer decide what the class name is?

You can use any name that makes sense for your organization, like com.mycompany.SomeValidator etc.

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: Apr 10 '13, 6:16 p.m.

Question was seen: 5,462 times

Last updated: Apr 11 '13, 11:38 a.m.

Confirmation Cancel Confirm