Package com.mossle.form.keyvalue

Examples of com.mossle.form.keyvalue.KeyValue.save()


            Record record = keyValue.findByRef(processInstanceId);

            if (record != null) {
                record = new RecordBuilder().build(record, STATUS_DRAFT_TASK,
                        getParameters());
                keyValue.save(record);
                businessKey = record.getCode();
            }
        } else if (this.notEmpty(businessKey)) {
            // 如果是流程草稿,直接通过businessKey获得record,更新数据
            Record record = keyValue.findByCode(businessKey);
View Full Code Here


            // 如果是流程草稿,直接通过businessKey获得record,更新数据
            Record record = keyValue.findByCode(businessKey);

            record = new RecordBuilder().build(record, STATUS_DRAFT_PROCESS,
                    getParameters());
            keyValue.save(record);
        } else {
            // 如果是第一次保存草稿,肯定是流程草稿,先初始化record,再保存数据
            Record record = new RecordBuilder().build(bpmProcessId,
                    STATUS_DRAFT_PROCESS, getParameters(), userId);
            keyValue.save(record);
View Full Code Here

            keyValue.save(record);
        } else {
            // 如果是第一次保存草稿,肯定是流程草稿,先初始化record,再保存数据
            Record record = new RecordBuilder().build(bpmProcessId,
                    STATUS_DRAFT_PROCESS, getParameters(), userId);
            keyValue.save(record);
            businessKey = record.getCode();
        }

        return businessKey;
    }
View Full Code Here

        new CompleteTaskWithCommentCmd(taskId, processParameters,
                OPERATION_COMMENT).execute(commandContext);
        record = new RecordBuilder().build(record, STATUS_RUNNING,
                processInstanceId);
        keyValue.save(record);

        return null;
    }

    /**
 
View Full Code Here

        ProcessInstance processInstance = processEngine.getRuntimeService()
                .startProcessInstanceById(processDefinitionId, businessKey,
                        processParameters);
        record = new RecordBuilder().build(record, STATUS_RUNNING,
                processInstance.getId());
        keyValue.save(record);

        return null;
    }

    /**
 
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.