We have developed a workflow which can be triggered by 2 events.
When we raise an event using FM SAP_WAPI_CREATE_EVENT the workflow get automatically Logically deleted. In the step history there are 4 messages:
Start Event Received
Work Item Deleted Logically - Event XXXXX with ID CL_SWF_UTL_EVT_IDENTIFIER has already been sent.
when raising an event using SWUE it starts ok.