Create a ProcessModel
1
Create a new ProcessModel
- Open the ABBYYFlexiCapture application in Appian Designer and click New → ProcessModel.
- In the dialog box that opens, complete the Name field and specify the path to the folder where the process is to be saved.
- Click Create & Edit.
2
Remove the unused nodes
Modify the process configuration by deleting the following nodes on the Process Modeler tab:
- Start Event
- End Event
- XOR
- Delete Folder
- Delete Document
- Delete from Data Store Entities
You can also double-click a node to modify it.
3
Create a confirmation interface
- Return to Appian Designer to add a dialog box that prompts the user to confirm record deletion.
- Click New → Interface and specify a name for the interface.
- Click Create & Edit.
4
Add the confirmation expression
In the code editor that opens, switch from Design View to Expression View and paste the following expression:
5
Add the cancel input variable
In the Interface Input dialog box, add a
cancel variable of type Boolean.6
Add the process model variables
- Save the interface and return to editing the process model.
- Click File → Properties and add the following variables on the Variables tab:
recordIdof type Number (Integer)DataStoreEntityof type Data Store Entity (a constant linking the data store to the data type)
7
Attach the confirmation interface
- Open the Process Start Form tab, select the Select an interface option, and add the interface you created to ask for user confirmation when deleting a record.
- In the dialog box that opens, click Yes to import the interface variables into the list of process variables.
8
Save and publish the process
After you finish configuring the process, click File → Save & Publish, or press Ctrl+Alt+S.
Add the process model to a record type
Add the process to the record type as a related action.1
Open the record type
In Appian Designer, open Record Type.
2
Create a related action
- In the dialog box that opens, click New Related Action.
- Complete the ProcessModel field (enter the name of the process you created).
- Specify the input variables of the process:
- For Credit Card Application:
Constant_CreditApplication_DSE - For Account Payable Records:
Constant_invoiceProcessing_DSE
- For Credit Card Application:
3
Add the related action to the record view
Add the new related action to the appropriate View Record Type.
The user needs to refresh the browser window to confirm that the record has been completely deleted.
Disable the Delete action in the Summary View
To make the deletion button unavailable to the user, disable the Delete action in the Summary View properties.1
Open the application
Open the ABBYYFlexiCapture application in Appian Designer.
2
Open the record type
Open the record type that you want to modify.
3
Disable the related action shortcut
In the dialog box that opens, click Summary View and disable the Related Action Shortcuts option next to the Delete action.
4
Save the changes
Click OK and save the changes you made to the record type.
