on 2011 Dec 07 8:41 AM
Dear colleagues.
I have a BOR object method (see transaction SWO1) with a
result parameter. This result parameter can have the values 'X'
(true) and ' ' (false) (these are the fix values of the corresponding
DDIC domain). In a workflow I have a step calling a
task, and that task is calling my BOR object method. The tab
"Outcomes" of my step is showing correctly two outcomes for ' ' and
'X'. However, if my BOR object method finishes with result ' ',
this is not transfered to the workflow step unfortunately. I suppose
that the workflow logic interprets ' ' as "nothing" and concludes
that there is no result to transfer at all.
Is there any possibility to transfer ' ' as result?
Best regards,
Holger Merkel
Hello,
Just test the result for X. X=true, the rest is false. So it doesn't matter what it gets set to.
regards
Rick Bakker
hanabi tehnology
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear S.Suresh and Rick Bakker.
Thank you for your answers.
Of course I could dump result values such 'X' and ' ' (for "True" and
"False") and choose something like 'Y' and 'N' (for "Yes" and "No")
instead of it. But I have many workflow steps in my application
having this problem and I want to avoid doing so many changes.
It's a problem that result ' ' is not transferred, because my
workflow steps do not only have outomes for 'X' and ' '; they also
have an additional outcome "Condition for 'Complete Work Item' is
true", because I have entered a condition at sub-tab "Complete Work
Item" of tab "Conditions" at all of my workflow steps. And if element
WIRESULT gets the wrong value "< Not Set >" instead of the right
value ' ', the workflow chooses this additional outcome. I Think it
chooses it because the outcomes for 'X' and ' ' don't match. (The
mentioned condition is false - as I have already checked.)
Best regards,
Holger Merkel
Hello,
"This result parameter can have the values 'X' (true) and ' ' (false)"
This is a boolean. It is either true or false. You know it's true when it's X, otherwise it is false.
Don't go testing for any other values. If you do, it's not a boolean.
The difference between '' and ' ' and NULL is problematic in many systems and languages so it should be avoided.
It's a pity if you have to change things but it sounds like they have been programmed incorrectly.
Wouldn't you rather have something that is guaranteed to work all the time instead of possibly breaking at the next upgrade?
regards
Rick Bakker
hanabi technology
Thank you.
The third outcome was inserted by the system automatically.
However, I have found out, that the problem's reason is the release
ERP 6.0 SAPKGPAD15 of my system. I have tested the same issue in
an EnhPack 6 system (system EE6.001, Workflow Pattern WS76200020).
But there the result value ' ' was transferred correctly and
everything works fine.
Best regards,
Holger Merkel
Hello !
Whether the workflow interprets provided the method returns 'X' ? You can check this in workflow log.
If so, it would interpret ' ' too.If it is not interpreting 'X', check the binding from task container to workflow container for populating 'X' or ' '.
I suggest you to make changes in the method such that it returns Z or Y instead of ' '.
Regards,
S.Suresh.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear S.Suresh.
Thank you very much for your answer.
I have tested my workflow with result 'X'. But this result 'X'
was transferred successfully, as I saw in the workflow log:
I took a look to the task container in the technical work item
display (after the task's execution), and there I could see that
elements WIRESULT and _RESULT got the value 'X', as expected. And
the workflow step took the right outcome for value 'X' as well.
However, if my method finishes with result ' ', the
elements WIRESULT and _RESULT do not have any value - the task
container display shows to me "< Not Set >" instead of a value. And I
suppose that this is the cause of my problem. The workflow step then
does not choose the outcome for ' ' but some other default outcome.
Did you ever had similar problems?
Best regards,
Holger Merkel
User | Count |
---|---|
81 | |
11 | |
10 | |
10 | |
10 | |
8 | |
7 | |
7 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.