How to set Planned For and Category for template initialized via RTC Java API and instantiateTemplate method
![]() Hi,
I was able to create instance of work item template using RTC Java plain APi.
Map<IAttributeVariable, Object> arg1 = new HashMap<IAttributeVariable, Object>();But I have problem with setting up Planned For and Category before creating instance of the template.
I know how to access attribute handle using findAttribute menthod but it is returns IAttribute type, not IAttributeVariable that is required by instantiateTemplate.
Any ideas how to conver IAttribute to IAttributeVariable or how exactly I should specify Planned For or Category before instanciating template ?
|
Accepted answer
![]() That solved the issue IAttributeVariable categoryAttribute = new AttributeVariable(ITemplateAttributeIdentifiers.WORKITEM_CATEGORY, ITemplateTypeIdentifiers.CATEGORY); IAttributeVariable iterationAttribute = new AttributeVariable(ITemplateAttributeIdentifiers.WORKITEM_ITERATION, ITemplateTypeIdentifiers.ITERATION); Ralph Schoon selected this answer as the correct answer
|
Comments
I would suggest to search in the SDK for
and find out how this is used within RTC.
Ralph.
Bummer. I did not try to insult you, I just described the approach I would have taken. I don't have a solution.
Ralph,