Castype circumstance

Hi,

I have a casetype that is circumstance using property ( eg. X), the create work of that casetype is called on click of a button, where I should set the prperty X? I added (set value) action on that button before the (create work) but didn’t work.

@MaiS2343 instead of Set Value, use data transform and try the same. It should work.

@MaiS2343

Set value wont work as on create work the context changes. Can you try using data transform instead? If not then for a logic to set it in pyDefault of the casetype.

@SohamM95

thank you for your reply.

I tried DT didn’t work.

When I set in pyDefault of the casetype the property was set successfully in the clipboard, but the base rule (casetype) was picked

@MaiS2343

Since the casetype is running on a new thread, even if you set anything before the start of case will no be considered in the context. And the pyDefault is setting the property but not working because the case has already start at the point where the property was not found and pyDefault was triggered later. It is a difficult scenario of context.

Instead of create work, call activity pxCreateTopCase and provide a DT name in TransformRule parameter where in the DT set the property. Also pass the ClassName param as the class of the casetype and check Commit param to true. I’m not sure if it’ll work though.