calling data transform in a function

Hi All,

I have a requirement where i need to call data transform based on decision table result. I am able to get the class and data transform name but not able to call that data transform as it requires step page

can someone help me with a function which takes step page as a parameter and data transform as another parameter and executes the data transform on the specified page instead of Primary Page.

thanks in advance for any assistance you may provide or guide me.

Regards,

Abhas Gupta

@Abhas-Gupta you can give try this way. In the each decision table row, you can use a set property-> for set property use data page-> sourced by data transform. You can pass parameters to the data page. Let us know if this works.

Hi @Abhas-Gupta: Can help to understand where the DT is called from? Is it in a activity block based on decision table results, if so, Apply-data-transform method should be able to accept dynamic step page and Dynamic DT rule name. Please let us know if you are facing any issues.

Thanks.

@ArulDevan

Hi I am using applying data transform in Activity also able to get the apply to class and data transform name from decision table name
i am just not sure how to configure the data transform

data transform name i am able to pass as parameter that is working but step page thing is not working

Hi @Abhas-Gupta: In Ideal scenario, Primary page of the activity / any embedded page will be used as step page. In certain cases you can use some top level pages too.

In your case, you can make use the step page as dynamic by following below steps

  • Define a parameter as page type in pages and classes tab
  • Define the same page mentioned in the parameter tab in Pages and classes tab
  • In Apply-Data-Transform step in activity, configure the step page as the parameter page (Param.Name Of page defined in parameter)

Now your step page of Apply-Data-Transform can be dynamic. You can change the page in any steps before it.

Looking into your case, you are dynamically fetching DT name and class. I have a doubt on what is the end output here. Changing the class dynamically and changing the step page dynamically serves different purpose. Please check this based on your use case.

Thanks.

@ArulDevan thanks for the answer,

my requirement is in UI we have more than 20 case types available and for each case type there are some pre-defined business context that is needed to be added e.g:- external URL links, Images, Contact Information

now the problem is for which case type what information to add, so our team created data transforms in case type classes which maps URL, images and other

my job was to dynamicaly select correct data transform with its class as there are many DT with same name.

Hi @Abhas-Gupta: Thanks for the details. This sounds like more a class level specialization. You can have a data transform specialized on your case type classes(example: pySetFieldDefaults, pyDefault).

Thanks.