Reputation: 1461
I wanted to load a sequence dynmically in the API. If I create sequence is the same ESB Solution project and load, it was successfuly referred the sequence:
<property description="supplierSeq" expression="json-eval($.sequence)" name="supplierSeq" scope="default" type="STRING"/>
<sequence description="" key="{get-property('supplierSeq')}"/>
But if I tried to create the sequence in the registry resource project as mentioned here, I could not load it.
<property description="supplierSeq" expression="json-eval($.sequence)" name="supplierSeq" scope="default" type="STRING"/>
<sequence description="" key="{concat('gov:sequence/', get-property('supplierSeq'))}"/>
Please advise.
Upvotes: 1
Views: 452
Reputation: 1461
I have make the registry path within script mediator and added as a property:
payload.sequence = "gov:sequence/" + supplier + "_availability.xml";
and then referred for the sequence:
<sequence description="" key="{get-property('supplierSeq')}"/>
This worked
Upvotes: 1