on ‎2022 Jan 05 1:35 PM



I have developed a workflow which has fetch agent activity step. The activity step executes a class method, below is the code.
Method Fetch_Agent.
LOOP AT me->gt_agents INTO ls_agent WHERE zlevel = im_level.
ENDLOOP.
IF sy-subrc = 0.
CONCATENATE 'US' ls_agent-agent INTO ex_agent.
ELSE.
ex_final = 'X'.
ENDIF.
Endmethod.
The constructor of workflow class(which has IF_WORKFLOW) has below code which fills gt_Agents public instance attribute.
SELECT bukrs zlevel agent FROM ztfi_capex_agent
* INTO TABLE zcl_wf_capex_request=>gt_agents WHERE bukrs = me->bukrs .
INTO TABLE me->gt_agents WHERE bukrs = me->bukrs .
IF sy-subrc EQ 0.
* SORT zcl_wf_capex_request=>gt_agents BY zlevel.
SORT me->gt_agents BY zlevel.
ENDIF.
But the task method is in process as mentioned in picture.
One more question is that why i don't see gt_agents public instance attribute as part of event object id in workflow binding.
Request clarification before answering.
Hi Sandra,
Please find the questions below.
1. why the activity step is in process ? though the activity step is background
2. Why i dont see gt_agents parameter in the event object id in the event container ? i didn't mention zcapid, bukrs, description etc as parameters of event still i could see them in event container how ?
3.How i can debug the constructor and other methods of workflow class ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 8 | |
| 6 | |
| 4 | |
| 3 | |
| 3 | |
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.