I designed an application to allow the user to submit a leave request and save it into the database.
After saving to the database, the 1st level approver needs to be notified and review the leave request and update the leave request status in the database.
If leave is approved, the 2nd level approver needs to be notified and review the leave request and update the database and send an email to the requester.
The problem is the 1st level approved cant see the detail of the form leave request.
After the user submit data and recorded into the database.
but when I click on the 1st level review, the data is not shown
Discussion posts and replies are publicly visible
From where you want to show the data? From Rule inputs,From DB? If from rule inputs then you have to pass the data from the process model to UIT. if from DB, you have to pass unique key of the data from Process model to UIT and then use queryEntity to fetch the detail from DB and use it to show into interface.
after the requester submitted a request, the record is added to the database.
I need to get the request id and display the request detail into an interface to allow 1st level of approval to review the request detail and enter some of the comments and approve the request.
although the Process Details properties is shown that my data is captured in the system, I didn't see it added to my database.
You have to save the DB data back to this Process variable via output. Go to data tab of the WDS node, select the stored value output and use your Process variable as a target and it will show you the id which is inserted into DB and then use that id to show fetch the data from the DB and show it into respective fields.
Hi Deepak,
but when the 1st level review, I click on the form it is show an empty form.
Have a look into Write to Data Store Entity Smart Service - Appian 22.3
Do you pass any data to the rule inputs of your interface? Please post a screen shot of the user input task configuration. The tabs data inputs and forms please.