<> preface

In previous chapters , We talked activity It can solve the problem of dynamically signing any node , But at that time, our signature nodes were temporarily stored , And in real business , You often need to create your own business table and activity Establish a certain business relationship with the table , This enables data persistence , That is, we cannot find the historical data of the node after the signature is added

activity and mybatis Achieved better integration , If used spring of xml If it is configured in this way , We just need to import mybatis And simple configuration

Let's start with a simple example , Experience how to store the self built business table data

1, Create table statement
CREATE TABLE `act_creation` ( `ID` int(11) NOT NULL AUTO_INCREMENT,
`PROCESS_DEFINITION_ID` varchar(255) DEFAULT NULL COMMENT ' Process definition id', `DOUSERID`
varchar(20) DEFAULT NULL COMMENT ' Operator id', `ACT_ID` varchar(64) DEFAULT NULL,
`PROCESS_INSTANCE_ID` varchar(255) NOT NULL DEFAULT '0' COMMENT ' Process instance id',
`PROPERTIES_TEXT` varchar(2000) DEFAULT NULL COMMENT ' parameter ', `STATE_` tinyint(4)
NOT NULL DEFAULT '0' COMMENT '0 Representative valid 1 Invalid representative ', `create_time` timestamp NULL

Technology