Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

The 4th edition of the Campaign Community Lens newsletter is out now!
SOLVED

Read workflow activity settings in approval task

Avatar

Community Advisor

Hello,

I want to hide enable certain fields in the approval task response based on the what you set in approval task in workflow.

 

Basically I need to read something from activity validation in the - Task approval (xtk) xtk taskWizard

so I can hide or show certain approval options

 

thanks for any advice, workaround 

Marcel

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

I think I have it. Ineed to implement another schema method that will get me the field. Something similar what it is done with the task validation params.

    <enter>
      <soapCall name="GetValidationParameters" service="xtk:workflow">
        <param exprIn="[@workflow-id]" type="string"/>
        <param exprIn="@taskIdentifier" type="string"/>
        <param type="DOMElement" xpathOut="/ignored/parameters"/>
      </soapCall>
      <set value="" xpath="/ignored/@value"/>
    </enter>

 I have created wrapper to the function above that additionally looked up for the checkbox value saved under the particular workflow activity and saved it in the parameters. Which I reused to display entire section in the taskApproval form.

 

 

 

View solution in original post

0 Replies

Avatar

Correct answer by
Community Advisor

I think I have it. Ineed to implement another schema method that will get me the field. Something similar what it is done with the task validation params.

    <enter>
      <soapCall name="GetValidationParameters" service="xtk:workflow">
        <param exprIn="[@workflow-id]" type="string"/>
        <param exprIn="@taskIdentifier" type="string"/>
        <param type="DOMElement" xpathOut="/ignored/parameters"/>
      </soapCall>
      <set value="" xpath="/ignored/@value"/>
    </enter>

 I have created wrapper to the function above that additionally looked up for the checkbox value saved under the particular workflow activity and saved it in the parameters. Which I reused to display entire section in the taskApproval form.

 

 

 

Avatar

Administrator

Thanks @Marcel_Szimonisz for sharing the solution, and being immensely resourceful to the Community.🙂