I'm migrating BOR tasks to ABAP OO (some compatibility issue arose) using a task with a class/method. The method is static like the BOR method was instance independent.
Inside my method I need to retrieve the workitem ID. In BOR method I used the macro swc_get_element to retrieve the workitem object and then the workitem ID. How do I do the same thing in a class method?
I tried using the IF_SWF_IFS_PARAMETER_CONTAINER but it is only usable in instance methods. Does the method need to be instance based?