Forum Discussion

FICO's avatar
FICO
Community Manager
15 years ago

Multiple Instance - Specific Remarks

Multiple Instance - Specific Remarks

Hi,

I have an requirement which is as below:

I have a decision table template with some condition/actions columns. There are 10 instances created from this template. Each of the instance has different data and the table is invoked based on specific condition. Now, I want to set specific string remarks (the object model property) based on the instance invoked. Remarks are different for all the instances (eg: name of the instance).

Doing the same in the source template is very tedious task and is inappropriate.

Any other suggestions on this?

Thanks & Regards,

>> Sandesh

3 Replies

  • FICO's avatar
    FICO
    Community Manager

    Hello, 

    Can we create a function tamplate to use/insert in the action code template/action column of DT containing the logic to set the remarks pertaining to the fired table.

  • FICO's avatar
    FICO
    Community Manager

    Hi ,

    In the decision table action cell templates you can refer to the rule setname which gives you the name of the decision table instance.

    using this you can have condition with in your action cell templates.

    i.e to get the ruleset name in the SRL content of the any of the code templates of decision table you need to insert a place holder , select Use existing value holder followed by select a value holder in the current global template.

    this will get the ruleset name which is nothing but the decision table name.

    then add the logic which is based on decision table instance name.

    this will solve the problem.

    thanks,

    --Ravindra.

  • FICO's avatar
    FICO
    Community Manager

    Excellent tip for decision table templates and score model templates; however how do I accomplish the same thing for regular ruleset templates? I have one ruleset template and multiple instances based on it; I would like to obtain the instance and then to pass dynamically the ruleset instance (or its name, not sure) to an SRL Entity Provider's Ruleset parameter. Thanks!