cancel
Showing results for 
Search instead for 
Did you mean: 

How to check null in workflow using EPM-check-object-propeties

Valued Contributor
Valued Contributor

Thank you for reading this post.

I was wondering how to use EPM-check-propetiese in workflow.

 

I'd like to prohibit the users from initiating the item that is already initiated.

So I decided to use this handler to check release status.

 

I set tha handler like below in start position in start task(root task).

 

-type   ItemRevision

-props release_status_list

-value null

But it could not work.

Could you tell me why this handler couldn't work in this case?

 

And can teamcenter treat null as null value??

 

 

 

Best Regards

 

 

 

4 REPLIES

Re: How to check null in workflow using EPM-check-object-propeties

Siemens Valued Contributor Siemens Valued Contributor
Siemens Valued Contributor
Epm_check_object_properties handler can't be used to check for Null / Empty values 

 There was an ER #2233379 for this...

Re: How to check null in workflow using EPM-check-object-propeties

Valued Contributor
Valued Contributor

Thank you for your reply. 

In this case, what handler should I use to check the release status of ItemRevision.

Re: How to check null in workflow using EPM-check-object-propeties

Valued Contributor
Valued Contributor

PLUS :

I am trying to use EPM-check-item-status. But I couldn't find relationship between ItemRevision and Release Status. 

 

What shold do I use for users not to be allowed to initiate WF again?

Re: How to check null in workflow using EPM-check-object-propeties

Solution Partner Legend Solution Partner Legend
Solution Partner Legend

I think you want to use EPM-check-target-object:

 

Description
Checks the status of the object being pasted to determine whether to allow the action.

Syntax

EPM-check-target-object -allowed_status=status-name| -disallowed_status=status-name

Arguments

-allowed_status

    Defines statuses to check against target objects. If a potential target matches any of the statuses defined with this argument, paste is available.

    Accepts one or more valid Teamcenter status names.

    Indicate any status with one of the following: *|all|ALL|any|ANY

    Indicate no status with one of the following: null|NULL|none|NONE

-disallowed_status

    Defines statuses to check against target objects. If a potential target matches any of the statuses defined with this argument, paste is unavailable. Can use in place of -status for clarity. A warning message is displayed indicating noncompliance to the business rule when you click OK. Additionally, if the argument passed to the handler is incorrect, this warning message is also displayed when you click OK.

    Accepts one or more valid Teamcenter status names.

    Indicate any status with one of the following: *|all|ALL|any|ANY

    Indicate no status with one of the following:  null|NULL|none|NONE

Arden Bedell | Teamcenter Wonk | Applied CAx, LLC