cancel
Showing results for 
Search instead for 
Did you mean: 

Workflow : Method is not executed in single step.

Former Member
0 Kudos
124

Hello,

i am saving a parked document and change, event is triggereing ( i saw this in SWEL).

i have a created a single step task that contains the trigering event (Change for parked document) and custom method which contains the code to update a z table.

i see in swel event is fired and also the task is fired with that.

but the table is not getting updated.

i tested the object and debuggd it manually through swo2. the program is working fine when executed through swo2. but doesnot work when executed through an event via transaction.

After this using SWEL event output i went into workflow log and found that,

1. Status : Ready.

2. After pressing details button i get "details for step table" below.

3. In this table there are two entries : a)Work item Created after event. b)Dailog work item created.

can somebbody please explain me why the method is not executed (or is it executed).

thanks

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

hi,

i think the problem is that your task is no backround task you have to define it as backround only then the task will automaticly launched.

One other thing for backround tasks, have you done your workflow customizing well ?

regards

Former Member
0 Kudos

Hi Matthias,

1. I am not able to select background processsing check box as it is inactive in the task.

2. What to do you mean by Workflow customizing. Can you please explain this.

Thanks

Former Member
0 Kudos

hi,

you can find the workflow customizing in swu3 - its important for the backround workflow user

the backround choice is disabled ? I thik its disabled because you defined the method in the BO as Dialog method. You have to go to swo1 and uncheck the method setting dialog ( Of cource only when it's really no dialog method ... dialog method means that the user has do so something while executing the method)

regards

Former Member
0 Kudos

Hi Mathias,

I corrected the method and selected the background processing in the task. But still the table was not updated when i fired the event using SWUE.

in workflow log i see

Status : Processin

and in details table below :

1. Start Event Recieved

2. Background Workitem Created.

I checked the Backgorund jobs, but was not able to make out the exact job.

Regards

martin_nooteboom
Active Contributor
0 Kudos

You will not find it in background jobs, as it is not a background job. You can see the status by using SWI1 or SWIA to find all the tasks. The task should be there and you can check the log to see the status.

By the way, you have now two threads for the same question ([this|; is the other one). So i think you should close the other one.

Regards,

Martin

Former Member
0 Kudos

Hi Martin,

But still if the method is executed then it should update the table. Table is not updated.

And in Work Item Information, work item is in status IN PROCESS.

I am a bit confused as to what is missing in this setting.

please help.

Thanks

martin_nooteboom
Active Contributor
0 Kudos

Check if there is shortdump. If the status is still 'In Process' this means the method has not ended yet, and this could be because there is a short dump.

Regards,

Martin

Former Member
0 Kudos

Hi Martin,

There is no dumps related to my workflow.

Former Member
0 Kudos

Try to test the method from SWO1 by providing the parameters of the method according to the task container value. Also check whether there was any system crash. Try to execute SWPC transaction and check this.

Thanks

Arghadip

imthiaz_ahmed
Active Contributor
0 Kudos

Verify the WF Log again and open the step where the bck grd is defined. See the message. These are all minor issues.If reuired, do a debug.

Regards, IA

imthiaz_ahmed
Active Contributor
0 Kudos

Why you have posted same question in two posts: Here is another one:

Do not post multiple times. Time matters. It will create frustration to people participating there valuable timings here.

Regards, IA