Read workflow activity settings in approval task | Community
Skip to main content
Marcel_Szimonisz
Community Advisor
Community Advisor
March 28, 2022
Solved

Read workflow activity settings in approval task

  • March 28, 2022
  • 1 reply
  • 988 views

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Marcel_Szimonisz

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.

 

 

 

1 reply

Marcel_Szimonisz
Community Advisor
Marcel_SzimoniszCommunity AdvisorAuthorAccepted solution
Community Advisor
March 28, 2022

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.

 

 

 

Sukrity_Wadhwa
Community Manager
Community Manager
May 18, 2022

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

Sukrity Wadhwa