Answered

How to properly construct an "If" expression.

Hello,

I am wondering how to properly construct an "If" expression.

Here's what I'm wanting to accomplish:

If "TaskComplete02" is False, I want an error message to appear.

If "TaskComplete02" is True, I want the workflow to proceed to the next step.

Currently, the error message appears whether "TaskComplete02" is marked True or False.

I'm guessing that the code is not properly constructed.

Please see below:

/EveuWC8SBF4AAAAASUVORK5CYII=

Thanks!

Comments (2)

photo
1

Dear John,

Regarding your question, we suppose that you have an boolean attribute in your activity like isItFinished.

Then, you need to create a validation to know if you can continue or not.

if(<MyProcess.MyEntity.isItFinished> == false ){

CHelper.ThrowValidationError("Need to Finish the Activity");

}

Here are some examples:

Regards

photo
1

Hello. Are Boolean expressions the only thing that can be evaluated in an if statement? I would like to say...

If [Variable] = "This Text" then Do This

Is that not possible?