Problem while creating Constant (Runtime)

I’ve started working with the REEL platform and began with the example mentioned in the certification course. In that example, they create the policy start and end date constant using runtime, which allows the data to be used dynamically right ??. However, when I tried to do the same, I couldn’t find the option to toggle runtime, and it seems the value can only be given statically. Is there any other method to achieve this?

2 Likes

Hi @Aswin,

Could you please share a screenshot of what you are referring to.


here as mentioned in the REEL certificate we have the option to toggle the runtime and select the source right but right now there is no option for toggle the RUNTIME option. How can i turn on the runtime toggle and select the source from the master data ??

1 Like

@Aswin,

You can set the value directly there with the value from master data.
Then use it on your flow.

How can we provide data from the master data? For example, if I use something like MT_policy_details.policy_start_date in the value field, will it automatically fetch the data from the master table? In the certification course, they toggled the runtime option and selected the start and end date fields from the source, which is why I’m a bit confused.

No it won’t but it will take MT_policy_details.policy_start_date as an actually value.

In new Reëls platform, there is no need to create constants at runtime.For constants, you should provide a static value, similar to defining a variable with an associated value.

In the REEL certification course, they demonstrate how to check whether an insurance policy is valid by comparing the current date with the policy start and end dates. They achieve this by creating a runtime constant. Could you please explain if there’s a way to implement this without using a runtime constant? Here as you can see i gave the date manually we want to make that dynamic right ?

2 Likes

To make the date you are comparing with dynamic, you can reference an input key within a rule, it should be declared as {IP_keyname} , and for an output key, it should be formatted as {OP_keyname}

If the requirement is to have dynamic values for variables, please use the input object.

2 Likes

How can we block the flow if a certain condition is not met? We added a condition, but it isn’t working as expected. Specifically, if the status is Rejected or Not Found, we want the flow to roll back (end immediately). Otherwise, it should continue. Could you please guide us on how to implement this correctly?

1 Like

We had a call with @Aswin and this was resolved, by adding another path for Approved status.

2 Likes

Hello, I have a doubt. Like we discussed yesterday, in the script rule I created an array to find the respective cell name for the sum insured. I am passing that value to the next rule, which is the master data. There, I am checking the make and model along with the cell name received from the script rule. But how can I match this cell name with the one found in the script rule to get the value of the respective insured sum cell?

Hi @Aswin,

The sum insured are already returned right if they are found on the masterdata.
To find a specific one depending on the vehicle age.
On your script you can create an variable that holds all the sum insureds for that vehicle and index in that using the vehicle age.

See example below:

`
const sumInsureds = [IP_0_Rec_SI, IP_1_Rec_SI, IP_2_Rec_SI, IP_3_Rec_SI,
IP_4_Rec_SI, IP_5_Rec_SI, IP_6_Rec_SI, IP_7_Rec_SI,
IP_8_Rec_SI, IP_9_Rec_SI, IP_10 _Rec_SI ]

const OP_sumInsured = sumInsured[IP_vehicleAge]

`
The sum insured will be indexed depending on the velihicle age

1 Like


As you can see im returning the cellname my doubt is that how we can find the respective amount on the basis of the cell name

this is how im taking the vehicle details data right now here how can i find the insured value based on the cellname

Hi @Aswis,

Since on Reels script to use an input, you need to use IP_0_REC_SI and all your sum insured are inputs from masterdata. After you have referenced them using IP_0_REC_SI, you can map them correctly.

If you have any doubt, please let me know so we can connect.

Sir, what I am doing right now is taking the cell name based on the vehicle age. For example, if the vehicle age is 2, I will get 2_Rec_SI, and I return this cell name to the next rule. The next rule retrieves the metadata of the vehicle based on make and model. Now, I want to find the insured value there using this cell name. How can I match the cell name with the respective field?

@Simphiwe @Sam @sajjad.rehman @Rocky please help

Can we connect @Aswin ??

Yes we can connect .

We connected and this was resolved, If you have any doubts or questions don’t hesitate to reach out @Aswin .

Hi i have a doubt here


this is how the age loading MT looks like so in the decision table if i give it like this

is this will be a correct approach because we adding the age range here manually right so is this ok or is there is any other method to do this and also