Hi,
feeling completely at loss at the moment. And even have implemented something similar some years ago :\.
Problem:
I have a quite small workflow which generates a url for a bsp-application connected via webflow and sends the url via mail to a user to call the bsp-application and then get back to workflow to continue. The URL-workflow-task generates an URL via SAP_WAPI_LAUNCH_URL_GET for the task with the webservice object that calls BSP application. The workitem-id contained in url is the one of the step where the url was generated but NOT the one which the bsp-call-taskitem will get later on (as at that time it isnt known anyways).
This still works perfectly for the calling of the BSP - but sadly this way callback does successfully report back to wf-engine but which due to wrong id thinks that the wf-taskitem already is completed. This causes the bsp-taskitem to be open eternally and the workflow is stuck. Trying to preguess the bsp-task workitem-id doesnt work (error:item can't be selected by wf-batch) and using the top-workitem-id also doesnt help. The entry for instance-event-linkage also shows the workitem id of the url-generating-step btw.
Trying to solve this now since ages but no clue anymore what I can try to solve this. Anyone here please has some advice/ideas what I could try?