To implement electronic signature, configuration must be done in design time as well as in runtime. In design time the developer defines which data is protected. In runtime security policy for the electronic signature is defined. The configuration of electronic signature is done only once, but the security can be defined and redefined many times. That is why it is useful to be able to set security in runtime.
Example (MxSpace)
To see the implementation of the electronic signature feature in MxSpace application click Production -> Manage. Right click any record in the grid displaying work order heads. Select Audit Trail....Check the square in front of an entity in Supported Entities section. You can see the history of changing work order status.
To implement electronic signature
- Open appropriate adapter (WorkOrderAdapter) in Solution Explorer.
- Expand the desired statement (ChangeStatus) in a data source (WorkOrder).
- Select Electronic Signature node.
- Click Add command in Selected Element Properties and select Parameter Signature. New item is added to the Existing Items list. See its properties in Selected Items Properties section.
- In property Caption enter a string (Status Changed) which will describe the data protected.
- In property EntityCode enter a unique string (WO_STATUS_CHAGE) that will represent electronic signature on this parameter.
- In property KeyParameter select a parameter (@Id) which is a primary key and by whom the updated record will be located and updated.
- In property ParameterName select a parameter (@StatusNameDummy) that holds the new value and the value that will be displayed in Audit Trail viewer.
- Login into MX-Client with administrator privileges, click application button and select Control Panel.
- In Server section click Signature Management.
- In section Purposes add new record appropriately.
- In section Entities add new record. In Code column enter the entity code (WO_STATUS_CHANGED) defined in design time (Point 5). In Name column enter a desired string.
- Right click the newly added row in section Entities and select Security....
- Define security policy for the created entity.