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

Is it possible to use an attribute with the type 'Duration' in a customized script?

Is it possible to use an attribute with the type 'Duration' in a customized script?

I want to calculate the Percentage complete by subtracting the estimated hours from the remaining hours; but the estimated hours is of type 'Duration'. It is not an integer.

0 votes



One answer

Permanent link
Hi,

as far as I can tell this is possible. As far as I am aware the duration is time in milliseconds. In any way the AttributeValueAnalyzer in Lab 5 of the Process Enactment Workshop shows how to access the data. The workshop also shows how to convert and calculate with script based attributes using parseInt(). I am sure there are other ways to do it using JavaSript or Dojo I am not even aware of.

0 votes

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 11 '13, 1:31 p.m.

Question was seen: 4,987 times

Last updated: Apr 16 '13, 3:26 a.m.

Confirmation Cancel Confirm