cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

SearchCondition for ManagedBaseline

SOLVED
joe_morton
13-Aquamarine

SearchCondition for ManagedBaseline

I'm working on some code in a workflow and I want to be able to query baselines that meet certain conditions. When I use syntax like the below, the workflow goes to an "aborted" state with no indication as to why.  How would I query baselines?

 

wt.query.SearchCondition sc = new wt.query.SearchCondition(wt.vc.baseline.ManagedBaseline.class, "lifeCycleState", wt.query.SearchCondition.EQUAL, "Approved", false);

1 ACCEPTED SOLUTION

Accepted Solutions
d_graham
15-Moonstone
(To:joe_morton)

Joe,

 

So, you're trying to query based on a case insensitive value of the lifecycle state.

 

You need to replace "lifeCycleState" with:

 "state.state"

 

 

Hope this helps

 

David

View solution in original post

2 REPLIES 2
d_graham
15-Moonstone
(To:joe_morton)

Joe,

 

So, you're trying to query based on a case insensitive value of the lifecycle state.

 

You need to replace "lifeCycleState" with:

 "state.state"

 

 

Hope this helps

 

David

View solution in original post

joe_morton
13-Aquamarine
(To:d_graham)

Thanks! 

I found another way to get what I needed, but I tested the code you gave, and it didn't cause the workflow to abort. 

 

Thanks for the help!

Announcements
Learn more about how we are using our browser poll here