Hi,
I have simimple process model which is having Decision task which is referening to the Decision table.
Decision table is having some entries. After the process model is published, the request can be created and it works as expected.
In my project requirement,I want to add some more new entries in the decision table, after adding that entries,i want to refelct that entries for the request which is going to be created newly without publishing the process model.
whether is there a way to accomploish this. As adding a new entry will be reflected only after we publishing the process model. But however, i am in need of understanding is there a way the newly added entries will be get reflected in the requestes without publishing the process model.
Kindly help on sharing your thoughts.
Thanks
Arun K
As a good practice, Updated definitions must get a newer version so instances can be created from the latest one.
If you have a resuable decision table attached to the process, try updating that from the decision tables tab. if you are expecting these changes more often, better use a service task that calls DmnRuleService to evaluate your decision table.
Hope it helps.
Hi
Thanks for your reply
If you have a resuable decision table attached to the process, try updating that from the decision tables tab.-->this is not working as expected(as it still requires publish of the process model)
if you are expecting these changes more often, better use a service task that calls DmnRuleService to evaluate your decision table.--could you please share some sample process model please.
Thanks
Arun K
@Arun_nmc wrote:Hi
Thanks for your reply
If you have a resuable decision table attached to the process, try updating that from the decision tables tab.-->this is not working as expected(as it still requires publish of the process model)
if you are expecting these changes more often, better use a service task that calls DmnRuleService to evaluate your decision table.--could you please share some sample process model please.
Thanks
Arun K
you can have bean with following impl. your decisionTable (in place of decisionKey) name will be required, download the xml from the editor and search for the same
@Autowired private DmnRuleService dmnRuleService; public void process(final DelegateExecution execution, final String decisionKey) { System.out.println("input: " + execution.getVariables()); execution.setVariables( dmnRuleService.executeDecisionByKey(decisionKey, execution.getVariables()).getResultVariables()); }
needless to say its just an example and not optimized.
Hi Abbas,
I was trying out your suggestion using a script task. Is it possible to do that ?
I did try this option. However the process model has to be redeployed otherwise the changes to decision table is not reflected. Please let me know if I am missing anything
Ask for and offer help to other Alfresco Process Services and Activiti Users and members of the Alfresco team.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.