[esb-issues] [JBoss JIRA] Work started: (JBESB-1272) CommandInterpreter.doTheJob does not make sense in error condition

Kurt Stam (JIRA) jira-events at lists.jboss.org
Fri Nov 16 08:38:20 EST 2007


     [ http://jira.jboss.com/jira/browse/JBESB-1272?page=all ]

Work on JBESB-1272 started by Kurt Stam.

> CommandInterpreter.doTheJob does not make sense in error condition
> ------------------------------------------------------------------
>
>                 Key: JBESB-1272
>                 URL: http://jira.jboss.com/jira/browse/JBESB-1272
>             Project: JBoss ESB
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: Process flow
>    Affects Versions: 4.2
>            Reporter: Mark Little
>         Assigned To: Kurt Stam
>             Fix For: 4.2.1 CP1
>
>
> 		Message response = Helper.commandMessageTemplate();
> 		Body	body	= response.getBody();
> 		try
> 		{
> 			Object obj = getJbpmCommandService().execute(command);
> 			body.add(Constants.RETURN_CODE, Constants.RETCODE_OK);
> 			if (null!=obj)
> 				body.add(Constants.JBPM_RETURN_OBJECT, obj);
> 		}
> 		catch (JbpmException e)
> 		{
> 			body.add(Constants.RETURN_CODE, Constants.RETCODE_EXCEPTION);
> 			body.add(Constants.EXCEPTION, e);
>             throw e;
> 		}
> 		
> 		return response;
> Why does the catch clause modify the body when the message isn't going to be returned?

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the esb-issues mailing list