cancel
Showing results for 
Search instead for 
Did you mean: 

URGENT help required ! ---- error during the execution of step in workflow

Former Member
0 Kudos

Hi all,

Hi all,

I have a peculiar problem in one of R3 workflows.

1. I have a method of one class which pulls a value from a Ztable by accepting two inputs

The method name is get_user_id_from_ztable

Parameters of the method in the definition are

a. PRJID , b. POSITIONID, c. USERID all are of type char24

2. When I test the method it works properly.

3. When I emmbed the method with the task also, there were no problems.

4. I used this task as a background activitiy step in a workflow. The binding between workflow->task and task <-workflow, task->method and method -< task are all done properly (ie without any error)

5. but The workflow ends with the following error.

Work item 000000157196: Object method SWW_BI_EXECUTE_S cannot be executed

Message no. WL821

Diagnosis

The calling of the object method for the work item ended with a return value for which no handling is modeled in the workflow.

System Response

The work item was forced into the error status.

Procedure

Refer to your workflow system administrator.

Procedure for System Administration

Also check the binding between the task container and the method container.

Please anybody give the solution to fix this problem.

Regards

R. Parthasarathy

Accepted Solutions (1)

Accepted Solutions (1)

martin_nooteboom
Active Contributor
0 Kudos

URGENT? I don't think it is urgent. Please read the forum guidelines on posting questions. This is not the right subject for a question.

You say the binding is done properly because there is no error. This is no guarantee the binding is correct. The problem you have is that the method has an outcome which is not catered for in the workflow. Probably an exception is raised, and this outcome is not activated. Test the method with exactly the same input parameters and check the result.

Regards,

Martin

Former Member
0 Kudos

Hi Martin,

Sorry!. I wanted to convey that i am delibrate for the solution to the community.

I tested the method with the correct input parameters, the result is coming properly.

ie The output parameter of the method brings the correct value out. The same test case in the workflow execution gives error.

While the workflow execution, the task is not getting the output from the method. even though the binding parameters are proper between task and method.

Regards

R. Parthasarathy.

martin_nooteboom
Active Contributor
0 Kudos

There is a difference when testing the method and testing the task, maybe in the import parameters, maybe in output. But the error you get comes because there is an outcome (or exception thrown in the method) for which no outcome is modeled in the workflow. So please check the outcomes of the method and check if they are all activated in the workflow. Also check if maybe an exception could be thrown in the method.

Regards,

Martin

Former Member
0 Kudos

Thanks martin and all,

The problem is fixed.

The datatype container of the task was changed when the manual binding was done between the method elements - was the reason for worflow error.

Learning - When we create a task which calls a method, we should leave the system to do auto configuration of transfer elements.

Regards,

R. Parthasarathy

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

have you checked your bindings not only for the WF --> Method, also for the Method --> WF?

Christoph

-


Of course I mean the bindings between Task and Method / Method and Task

Edited by: Christoph Schle on Dec 21, 2007 11:05 AM

Former Member
0 Kudos

Hi Christoph,

I have checked the bindings of WF->TASK, TASK -> METHOD and vice versa.

I donot know how to check the binding between METHOD->WORKFLOW and viceversa without TASK inbetween.

For your info.--

While execution of one activity step in my workflow, the error occurs.

A background TASK specified in the step is executing a METHOD of a class in the background.

Regards

R. Parthasarathy

Former Member
0 Kudos

Please check whether the Container value is properly passed from Workflow to Task. Please check the Workflow Log and investigate accordingly.

Thanks

Arghadip

Former Member
0 Kudos

hi Arghadip,

I checked in the workflow log, the values passed from workflow to task is proper and correct.

In the workflow log, the task's output parameter does not hold any value. which suppose to hold the output value from the method.

Thanks,

R. Parthasarathy