How to use TaskRuleHelper.removeProcessedRules(IURI arg0, List arg1)?

Hello

how can the method TaskRuleHelper.removeProcessedRules(IURI arg0, List arg1) be used? Which data is required for arg0 and arg1?

Am I right that arg0 needs to be the IURI of the current task on which the event was triggered and arg1 is the result of TaskHelper.getRulesList(…) ?
If yes how can I retrieve IURI of current Task?

Thank you.
Alex