Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Workflow - Start Condition Failure

Former Member
0 Likes
885

Hi All,

I am trying to put a start condition on a workflow of mine. I just want to check if an order type = PM01 or PM03 and not 0010.

I have my start condition set-up but every time I run it I get this error in my event log:

Operator 'EQ': The value of the left operand cannot be determined


  (  " PM01 or PM03 
     &Maintenance order.Order type& = PM01 
     or    &Maintenance order.Order type& = PM03 
  ) " PM01 or PM03 
  and    &Maintenance order.Plant& u2260 0010 

The funny thing is if I go to SWUE and kick off the even it passes the start condition fine. So therefore I think there is an issue with my container being passed to the start condition.

Is there anyway I can fix this?

Many Thanks For Any Help Provided,

Colm

4 REPLIES 4
Read only

Former Member
0 Likes
612

Hi,

Place the order type values in single quotes as shown below. As these are values and not a variable containing some value. That is the reason it is not able to identify the value.

(  " PM01 or PM03 
     &Maintenance order.Order type& = 'PM01' 
     or    &Maintenance order.Order type& = 'PM03' 
  ) " PM01 or PM03 
  and    &Maintenance order.Plant& u2260 '0010'

I hope this solve your problem.

Regards,

Brajvir

Read only

Former Member
0 Likes
612

Hi,

Did you try like this?

(  " PM01 or PM03 
     &Maintenance order.Order type& EQ 'PM01'
     or    &Maintenance order.Order type& EQ 'PM03' 
  ) " PM01 or PM03 
  and    &Maintenance order.Plant& NE '0010 '

Rhea.

Read only

Former Member
0 Likes
612

Thank you both for your suggestions, however I am entering these start conditions using the transaction SWB_COND.

In SWB_COND you can not use single quotes ('PM01') or change the equals sign (= -> EQ).

In SWB_COND if you enter a literal it automatically places the single quotes around your values.

Thanks for the help anyway, any more ideas would be much appreciated.

Read only

Former Member
0 Likes
612

Apologies, I created this question in the wrong forum. Moved the thread here :

Link:

Edited by: Colm Gavin on Mar 26, 2009 11:49 AM

Edited by: Colm Gavin on Mar 26, 2009 11:50 AM

Edited by: Colm Gavin on Mar 26, 2009 11:52 AM