Question

How to determine HarnessType using pyActionInfo.HarnessType

Hi,

How to determine HarnessType using pyActionInfo.HarnessType?

I have a when rule in Work- class in which I need to check the HarnessType.

pyActionInfo.HarnessType="Confirm"

Getting below error (Please find attached screen shot)

Property Pega-UI-RunTime-Display.HarnessType is undefined.

Regards,

Deepali

***Edited by Moderator Marissa to update platform capability tags****

Comments

Keep up to date on this post and subscribe to comments

Pega
October 22, 2019 - 4:19pm

I don't see the attached screen shot. Can you re-attach it?

Pega
October 22, 2019 - 4:24pm

Can you try followings?

pega.u.d.processHarnessType = "Confirm"

or

pega.u.d.harnessType = "Confirm"

October 23, 2019 - 3:09am

Attached screen shot.

Pega
October 23, 2019 - 8:58am

Hi,

Can you use the OOTB When rule Work-. pyIsHarnessTypePerform instead for this purpose?

Thanks

Pega
October 23, 2019 - 9:05am
Response to tanie_GCS

You can also try updating the conditions in your When to 

param.HarnessType to "Perform"

October 24, 2019 - 1:48am

What's the page class you specified on "Pages&Classes" for pyActionInfo? (it should be Embed-UI-RunTime-Element)

Pega
October 31, 2019 - 9:00am

I haven't seen a response from the user, just curious, have the suggestions worked? Pl let us know. 

Thank you