RTC how to update programmatically workitems?
Hi
I need to update a workitem in a operationParticipant, i need to add a new subscriber.
i already retrieved the subscriber,and I got the subscription list of the workitem and added it to the list, but the change doesnt appear in the UI, i suppose that i need a way to do a commit or save the workitem.
I m doing this in the server side, in a follow up action
2 answers
You will need to add the IWorkItemServer service as a dependency to your plugin if you have not already done so. Once you have added the dependency, you can save your work item using the IWorkItemServer#saveWorkItem2() method as shown below:
IWorkItem workItem = ... IWorkItemServer workItemServer = getService(IWorkItemServer.class);
workItemServer.saveWorkItem2(workItem, null, null);