Condition step not working in Workflow

Mike Pokraka wug at workflowconnections.com
Thu Feb 28 07:54:02 EST 2008


Just to confirm the obvious: Does the step actually complete? (Status
Completed)
If it just completes and the next step doesn't start then your WF
definition couldbe corrupt. Put the two steps into a test WF and see if
that works.

On Wed, February 27, 2008 6:20 pm, Sue Doughty wrote:
> Hi Mike,
>
> I changed the data type to SY-INPUT and still get the same results.
>
> Thank you for the suggestion though.  I'm willing to try anything.  I
> hope that it is not something so simple that I'll feel really stupid
> when I find it.   :-)
>
> Regards,
> Sue T. Doughty
> SAP Workflow Specialist
> Old Dominion Freight Line, Inc.
> 500 Old Dominion Way
> Thomasville, NC 27360
> Phone:  (336) 822-5189
> Toll Free (800 ) 432-6335, ext. 5189
> Email:  sue.doughty at odfl.com
>
> -----Original Message-----
> From: sap-wug-bounces at mit.edu [mailto:sap-wug-bounces at mit.edu] On Behalf
> Of Mike Pokraka
> Sent: Wednesday, February 27, 2008 12:13 PM
> To: SAP Workflow Users' Group
> Subject: RE: Condition step not working in Workflow
>
> Hmm, not too sure then. I thought I'd mention as it would be worth
> checking. Also make sure your data type is valid for the values. Try
> changing it to SY-INPUT just to make sure.
>
> On Wed, February 27, 2008 4:11 pm, Sue Doughty wrote:
>> Hi Mike,
>>
>> Thanks for your reply.
>>
>> I am not using a result parameter even though I tried that when it did
>> not work the way I had it at first.  Neither way works.  I can see in
>> the workflow log that my export parameter (ImageFound) is being
>> populated with the correct 'T' or 'F' value, but the Results
> processing
>> step is not being executed with an F value - it only executes when the
>> export parameter contains a 'T' value.
>>
>> I can't use a virtual attribute because the input parameters to the
>> method change with each call to the method (i.e., doctype and
>> imagedate).
>>
>> Regards,
>> Sue T. Doughty
>> SAP Workflow Specialist
>> Old Dominion Freight Line, Inc.
>> 500 Old Dominion Way
>> Thomasville, NC 27360
>> Phone:  (336) 822-5189
>> Toll Free (800 ) 432-6335, ext. 5189
>> Email:  sue.doughty at odfl.com
>> -----Original Message-----
>> From: sap-wug-bounces at mit.edu [mailto:sap-wug-bounces at mit.edu] On
> Behalf
>> Of Mike Pokraka
>> Sent: Wednesday, February 27, 2008 10:44 AM
>> To: SAP Workflow Users' Group
>> Subject: Re: Condition step not working in Workflow
>>
>> Hi Sue,
>> Are you using a standard return parameter or a result parameter?
>> ("Result
>> parameter" checkbox on your method properties).
>> Result parameters behave differently, T/F must be defined within the
>> data
>> dictionary and become separate outcomes of the method.
>> Also, perhaps a virtual attribute might be easier if this is all that
>> the
>> method does...
>>
>> Cheers,
>> Mike
>>
>> On Tue, February 26, 2008 5:06 pm, Sue Doughty wrote:
>>> We are on 4.7, ECC 6.0
>>>
>>>
>>>
>>> I have a sub-workflow that executes a loop until a result flag is set
>> to
>>> T.  It executes a method that reads a table with some information.
> If
>>> the record is found, the result is set to T, if not it is set to F
> and
>>> the result container is set in the method.  The next step is a
>> condition
>>> to check the result.  If T, the loop and sub-workflow are completed,
>> if
>>> F, it waits and tries again after five minutes.
>>>
>>>
>>>
>>> My problem:  If the method executes and the result is T, the workflow
>>> works as designed.  If the method returns a result of F, the workflow
>>> stops at that step and does not move to the condition step to check
>> the
>>> result.
>>>
>>>
>>>
>>> I can see that the method is returning the result container.  If the
>>> Result = T, I can see that the Result container is sent back to the
>>> sub-workflow.  When I look at the step in the log, it says that the
>>> background item was created, started, work item processing is
> complete
>>> and the result processing is done with no errors.
>>>
>>>
>>>
>>> If the Result is F, I can see that the method is returning the result
>>> container, but the workflow container does NOT get set to the Result.
>>> When I look at the step in the log, it says that the background item
>> was
>>> created; started and work item processing is complete with no errors,
>>> BUT the Result Processing is NOT done.
>>>
>>>
>>>
>>> What am I missing?  Why is the Result processing being done for one
>>> result but not the other?
>>>
>>>
>>>
>>> Regards,
>>>
>>> Sue T. Doughty
>>>
>>> SAP Workflow Specialist
>>>
>>> Old Dominion Freight Line, Inc.
>>>
>>> 500 Old Dominion Way
>>>
>>> Thomasville, NC 27360
>>>
>>> Phone:  (336) 822-5189
>>>
>>> Toll Free (800 ) 432-6335, ext. 5189
>>>
>>> Email:  sue.doughty at odfl.com
>>>
>>>
>>>
>>> ****************************
>>> CONFIDENTIALITY NOTICE: The information contained in this message may
>> be
>>> confidential, privileged, proprietary, or otherwise legally exempt
>> from
>>> disclosure. If the reader of this message is not the intended
>> recipient,
>>> or an employee or agent responsible for delivering this message to
> the
>>> intended recipient, you are hereby notified that you are not
>> authorized to
>>> read, print, retain, copy or disseminate this message, any part of
> it,
>> or
>>> any attachments. If you have received this message in error, please
>> delete
>>> this message and any attachments from your system without reading the
>>> content and notify the sender immediately of the inadvertent
>> transmission.
>>> Thank you for your cooperation.
>>>
>>> _______________________________________________
>>> SAP-WUG mailing list
>>> SAP-WUG at mit.edu
>>> http://mailman.mit.edu/mailman/listinfo/sap-wug
>>>
>>
>>
>> _______________________________________________
>> SAP-WUG mailing list
>> SAP-WUG at mit.edu
>> http://mailman.mit.edu/mailman/listinfo/sap-wug
>>
>>
>> ****************************
>> CONFIDENTIALITY NOTICE: The information contained in this message may
> be
>> confidential, privileged, proprietary, or otherwise legally exempt
> from
>> disclosure. If the reader of this message is not the intended
> recipient,
>> or an employee or agent responsible for delivering this message to the
>> intended recipient, you are hereby notified that you are not
> authorized to
>> read, print, retain, copy or disseminate this message, any part of it,
> or
>> any attachments. If you have received this message in error, please
> delete
>> this message and any attachments from your system without reading the
>> content and notify the sender immediately of the inadvertent
> transmission.
>> Thank you for your cooperation.
>>
>> _______________________________________________
>> SAP-WUG mailing list
>> SAP-WUG at mit.edu
>> http://mailman.mit.edu/mailman/listinfo/sap-wug
>>
>
>
> _______________________________________________
> SAP-WUG mailing list
> SAP-WUG at mit.edu
> http://mailman.mit.edu/mailman/listinfo/sap-wug
>
>
> ****************************
> CONFIDENTIALITY NOTICE: The information contained in this message may be
> confidential, privileged, proprietary, or otherwise legally exempt from
> disclosure. If the reader of this message is not the intended recipient,
> or an employee or agent responsible for delivering this message to the
> intended recipient, you are hereby notified that you are not authorized to
> read, print, retain, copy or disseminate this message, any part of it, or
> any attachments. If you have received this message in error, please delete
> this message and any attachments from your system without reading the
> content and notify the sender immediately of the inadvertent transmission.
> Thank you for your cooperation.
>
> _______________________________________________
> SAP-WUG mailing list
> SAP-WUG at mit.edu
> http://mailman.mit.edu/mailman/listinfo/sap-wug
>





More information about the SAP-WUG mailing list