本文整理了Java中org.bonitasoft.engine.recorder.Recorder.recordUpdate
方法的一些代码示例,展示了Recorder.recordUpdate
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Recorder.recordUpdate
方法的具体详情如下:
包路径:org.bonitasoft.engine.recorder.Recorder
类名称:Recorder
方法名:recordUpdate
[英]Update a record from database
[中]从数据库更新记录
代码示例来源:origin: bonitasoft/bonita-engine
void update(long processId, SProcessDefinitionDeployInfo processDefinitionDeployInfo, UpdateRecord updateRecord, String eventType)
throws SRecorderException, SCacheException {
recorder.recordUpdate(updateRecord, eventType);
if (!updateRecord.getFields().containsKey(SProcessDefinitionDeployInfoBuilderFactoryImpl.DESIGN_CONTENT)) {
updateSProcessDefinitionTimestampInCache(processId, processDefinitionDeployInfo);
}
}
代码示例来源:origin: bonitasoft/bonita-engine
void update(long processId, SProcessDefinitionDeployInfo processDefinitionDeployInfo, UpdateRecord updateRecord, String eventType)
throws SRecorderException, SCacheException {
recorder.recordUpdate(updateRecord, eventType);
if (!updateRecord.getFields().containsKey(SProcessDefinitionDeployInfoBuilderFactoryImpl.DESIGN_CONTENT)) {
updateSProcessDefinitionTimestampInCache(processId, processDefinitionDeployInfo);
}
}
代码示例来源:origin: bonitasoft/bonita-engine
private void updateRefBusinessDataInstance(final SRefBusinessDataInstance refBusinessDataInstance, final Map<String, Object> fields)
throws SRefBusinessDataInstanceModificationException {
try {
recorder.recordUpdate(UpdateRecord.buildSetFields(refBusinessDataInstance, fields), REF_BUSINESS_DATA_INSTANCE);
} catch (final SRecorderException sre) {
throw new SRefBusinessDataInstanceModificationException(sre);
}
}
代码示例来源:origin: bonitasoft/bonita-engine
@Override
public void updateProcess(final SProcessInstance processInstance, final EntityUpdateDescriptor descriptor) throws SProcessInstanceModificationException {
try {
recorder.recordUpdate(UpdateRecord.buildSetFields(processInstance, descriptor), PROCESSINSTANCE);
} catch (final SRecorderException e) {
throw new SProcessInstanceModificationException(e);
}
}
代码示例来源:origin: bonitasoft/bonita-engine
private void updateRefBusinessDataInstance(final SRefBusinessDataInstance refBusinessDataInstance, final Map<String, Object> fields)
throws SRefBusinessDataInstanceModificationException {
try {
recorder.recordUpdate(UpdateRecord.buildSetFields(refBusinessDataInstance, fields), REF_BUSINESS_DATA_INSTANCE);
} catch (final SRecorderException sre) {
throw new SRefBusinessDataInstanceModificationException(sre);
}
}
代码示例来源:origin: bonitasoft/bonita-engine
private void updateFields(final SDocumentMapping mappedDocument, final Map<String, Object> params) throws SObjectModificationException {
try {
recorder.recordUpdate(UpdateRecord.buildSetFields(mappedDocument,
params), DOCUMENTMAPPING);
} catch (final SRecorderException e) {
throw new SObjectModificationException(e);
}
}
代码示例来源:origin: bonitasoft/bonita-engine
@Override
public void updateJobLog(final SJobLog jobLog, final EntityUpdateDescriptor descriptor) throws SJobLogUpdatingException {
try {
recorder.recordUpdate(UpdateRecord.buildSetFields(jobLog, descriptor), JOB_LOG);
} catch (final SRecorderException e) {
throw new SJobLogUpdatingException(e);
}
}
代码示例来源:origin: bonitasoft/bonita-engine
@Override
public void updateCustomUserInfoValue(final SCustomUserInfoValue customUserInfo, final EntityUpdateDescriptor descriptor) throws SIdentityException {
try {
recorder.recordUpdate(UpdateRecord.buildSetFields(customUserInfo, descriptor), CUSTOM_USER_INFO_VALUE);
} catch (final SRecorderException e) {
throw new SIdentityException("Can't update custom user info definition " + customUserInfo, e);
}
}
代码示例来源:origin: bonitasoft/bonita-engine
@Override
public void updateEventTriggerInstance(final STimerEventTriggerInstance sTimerEventTriggerInstance, final EntityUpdateDescriptor descriptor)
throws SEventTriggerInstanceModificationException {
try {
getRecorder().recordUpdate(UpdateRecord.buildSetFields(sTimerEventTriggerInstance, descriptor), EVENT_TRIGGER_INSTANCE);
} catch (final SRecorderException e) {
throw new SEventTriggerInstanceModificationException(e);
}
}
代码示例来源:origin: bonitasoft/bonita-engine
@Override
public void deleteContentOfArchivedDocument(final long archivedDocumentId) throws SObjectNotFoundException, SBonitaReadException, SRecorderException {
final SAMappedDocument archivedDocument = getArchivedDocument(archivedDocumentId);
final SDocument document = getDocumentWithContent(archivedDocument.getDocumentId());
recorder.recordUpdate(UpdateRecord.buildSetFields(document, Collections.singletonMap("content", null)), DOCUMENT);
}
代码示例来源:origin: bonitasoft/bonita-engine
protected void updateFlowNode(final SFlowNodeInstance flowNodeInstance, final String eventName, final EntityUpdateDescriptor descriptor)
throws SFlowNodeModificationException {
try {
getRecorder().recordUpdate(UpdateRecord.buildSetFields(flowNodeInstance, descriptor), eventName);
} catch (final SRecorderException sre) {
throw new SFlowNodeModificationException(sre);
}
}
代码示例来源:origin: bonitasoft/bonita-engine
@Override
public void deleteContentOfArchivedDocument(final long archivedDocumentId) throws SObjectNotFoundException, SBonitaReadException, SRecorderException {
final SAMappedDocument archivedDocument = getArchivedDocument(archivedDocumentId);
final SDocument document = getDocumentWithContent(archivedDocument.getDocumentId());
recorder.recordUpdate(UpdateRecord.buildSetFields(document, Collections.singletonMap("content", null)), DOCUMENT);
}
代码示例来源:origin: bonitasoft/bonita-engine
@Override
public void updateMessageInstance(final SMessageInstance messageInstance, final EntityUpdateDescriptor descriptor) throws SMessageModificationException {
try {
getRecorder().recordUpdate(UpdateRecord.buildSetFields(messageInstance, descriptor), MESSAGE_INSTANCE);
} catch (final SRecorderException re) {
throw new SMessageModificationException(re);
}
}
代码示例来源:origin: bonitasoft/bonita-engine
void update(SParameter sParameter, String parameterValue) throws SObjectModificationException {
final EntityUpdateDescriptor descriptor = new EntityUpdateDescriptor();
descriptor.addField(VALUE_KEY, interpretParameterValue(parameterValue));
try {
recorder.recordUpdate(UpdateRecord.buildSetFields(sParameter, descriptor), PARAMETER);
} catch (SRecorderException e) {
throw new SObjectModificationException(e);
}
}
代码示例来源:origin: bonitasoft/bonita-engine
@Override
public void setStateCategory(final SFlowElementInstance flowElementInstance, final SStateCategory stateCategory) throws SFlowNodeModificationException {
final EntityUpdateDescriptor descriptor = new EntityUpdateDescriptor();
descriptor.addField(activityInstanceKeyProvider.getStateCategoryKey(), stateCategory);
try {
getRecorder().recordUpdate(UpdateRecord.buildSetFields(flowElementInstance, descriptor), STATE_CATEGORY);
} catch (final SRecorderException sre) {
throw new SFlowNodeModificationException(sre);
}
}
代码示例来源:origin: bonitasoft/bonita-engine
@Override
public void setAbortedByBoundaryEvent(final SActivityInstance activityInstance, final long boundaryEventId) throws SActivityModificationException {
final EntityUpdateDescriptor descriptor = new EntityUpdateDescriptor();
descriptor.addField(sUserTaskInstanceBuilder.getAbortedByBoundaryEventIdKey(), boundaryEventId);
try {
getRecorder().recordUpdate(UpdateRecord.buildSetFields(activityInstance, descriptor), STATE_CATEGORY);
} catch (final SRecorderException sre) {
throw new SActivityModificationException(sre);
}
}
代码示例来源:origin: bonitasoft/bonita-engine
@Override
public void setAbortedByBoundaryEvent(final SActivityInstance activityInstance, final long boundaryEventId) throws SActivityModificationException {
final EntityUpdateDescriptor descriptor = new EntityUpdateDescriptor();
descriptor.addField(sUserTaskInstanceBuilder.getAbortedByBoundaryEventIdKey(), boundaryEventId);
try {
getRecorder().recordUpdate(UpdateRecord.buildSetFields(activityInstance, descriptor), STATE_CATEGORY);
} catch (final SRecorderException sre) {
throw new SActivityModificationException(sre);
}
}
代码示例来源:origin: bonitasoft/bonita-engine
@Override
public void setTokenCount(final SActivityInstance activityInstance, final int tokenCount) throws SFlowNodeModificationException {
final EntityUpdateDescriptor descriptor = new EntityUpdateDescriptor();
descriptor.addField(sUserTaskInstanceBuilder.getTokenCountKey(), tokenCount);
try {
getRecorder().recordUpdate(UpdateRecord.buildSetFields(activityInstance, descriptor), ACTIVITY_INSTANCE_TOKEN_COUNT);
} catch (final SRecorderException e) {
throw new SFlowNodeModificationException(e);
}
}
代码示例来源:origin: bonitasoft/bonita-engine
@Override
public void setState(final SConnectorInstance sConnectorInstance, final String state) throws SConnectorInstanceModificationException {
final EntityUpdateDescriptor entityUpdateDescriptor = new EntityUpdateDescriptor();
entityUpdateDescriptor.addField(BuilderFactory.get(SConnectorInstanceBuilderFactory.class).getStateKey(), state);
try {
recorder.recordUpdate(UpdateRecord.buildSetFields(sConnectorInstance, entityUpdateDescriptor), CONNECTOR_INSTANCE_STATE);
} catch (final SRecorderException e) {
throw new SConnectorInstanceModificationException(e);
}
}
代码示例来源:origin: bonitasoft/bonita-engine
@Override
public void setTokenCount(final SActivityInstance activityInstance, final int tokenCount) throws SFlowNodeModificationException {
final EntityUpdateDescriptor descriptor = new EntityUpdateDescriptor();
descriptor.addField(sUserTaskInstanceBuilder.getTokenCountKey(), tokenCount);
try {
getRecorder().recordUpdate(UpdateRecord.buildSetFields(activityInstance, descriptor), ACTIVITY_INSTANCE_TOKEN_COUNT);
} catch (final SRecorderException e) {
throw new SFlowNodeModificationException(e);
}
}
内容来源于网络,如有侵权,请联系作者删除!