本文整理了Java中org.bonitasoft.engine.recorder.Recorder
类的一些代码示例,展示了Recorder
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Recorder
类的具体详情如下:
包路径:org.bonitasoft.engine.recorder.Recorder
类名称:Recorder
暂无
代码示例来源:origin: bonitasoft/bonita-engine
@Override
public void add(String name, TenantResourceType type, byte[] content, long userId) throws SRecorderException {
if (content != null && content.length > 0) {
STenantResource resource = new STenantResource(name, type, content, userId, Instant.now().toEpochMilli(),
INSTALLED);
recorder.recordInsert(new InsertRecord(resource), TENANT_RESOURCE);
} else {
logger.log(this.getClass(), TechnicalLogSeverity.WARNING,
"Tenant resource file contains an empty file " + name + " that will be ignored. Check that this is not a mistake.");
}
}
代码示例来源:origin: bonitasoft/bonita-engine
private void deleteSADataInstance(final SADataInstance dataInstance) throws SDeleteDataInstanceException {
try {
recorder.recordDelete(new DeleteRecord(dataInstance), "DATA_INSTANCE");
} catch (final SRecorderException e) {
throw new SDeleteDataInstanceException("Impossible to delete data instance", e);
}
}
代码示例来源: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
@Override
public void deleteAllUsers() throws SUserDeletionException {
try {
final DeleteAllRecord record = new DeleteAllRecord(SUser.class, null);
recorder.recordDeleteAll(record);
final DeleteAllRecord record2 = new DeleteAllRecord(SUserLogin.class, null);
recorder.recordDeleteAll(record2);
} catch (final SRecorderException e) {
throw new SUserDeletionException("Can't delete all users.", e);
}
}
代码示例来源:origin: bonitasoft/bonita-engine
@Override
public void deleteAllUsers() throws SUserDeletionException {
try {
final DeleteAllRecord record = new DeleteAllRecord(SUser.class, null);
recorder.recordDeleteAll(record);
final DeleteAllRecord record2 = new DeleteAllRecord(SUserLogin.class, null);
recorder.recordDeleteAll(record2);
} catch (final SRecorderException e) {
throw new SUserDeletionException("Can't delete all users.", e);
}
}
代码示例来源:origin: bonitasoft/bonita-engine
@Override
public void add(long processDefinitionId, String name, BARResourceType type, byte[] content) throws SRecorderException {
SBARResource resource = new SBARResource(name, type, processDefinitionId, content);
recorder.recordInsert(new InsertRecord(resource), BAR_RESOURCE);
}
代码示例来源:origin: bonitasoft/bonita-engine
protected void deleteProcessData(final SProcessContractData processContractData) throws SContractDataDeletionException {
try {
recorder.recordDelete(new DeleteRecord(processContractData), PROCESS_CONTRACT_DATA);
} catch (final SRecorderException sre) {
throw new SContractDataDeletionException(sre);
}
}
代码示例来源: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
@Override
public void deleteAllActorMembers() throws SActorMemberDeletionException {
try {
final DeleteAllRecord record = new DeleteAllRecord(SActorMember.class, null);
recorder.recordDeleteAll(record);
} catch (final SRecorderException e) {
throw new SActorMemberDeletionException("Can't delete all actor members.", e);
}
}
代码示例来源:origin: bonitasoft/bonita-engine
SPageMapping insert(final SPageMappingImpl entity) throws SObjectCreationException {
try {
recorder.recordInsert(new InsertRecord(entity), PAGE_MAPPING);
} catch (final SRecorderException e) {
throw new SObjectCreationException(e);
}
return entity;
}
代码示例来源:origin: bonitasoft/bonita-engine
@Override
public void deleteCustomUserInfoValue(final SCustomUserInfoValue customUserInfo) throws SIdentityException {
try {
recorder.recordDelete(new DeleteRecord(customUserInfo), CUSTOM_USER_INFO_VALUE);
} catch (final SRecorderException e) {
throw new SIdentityException("Can't delete custom user info value" + customUserInfo, e);
}
}
代码示例来源:origin: bonitasoft/bonita-engine
private void updateProcessInstance(final SProcessInstance processInstance, final EntityUpdateDescriptor descriptor, final String eventType)
throws SProcessInstanceModificationException {
try {
recorder.recordUpdate(UpdateRecord.buildSetFields(processInstance, descriptor), eventType);
} catch (final SRecorderException e) {
throw new SProcessInstanceModificationException(e);
}
}
代码示例来源:origin: bonitasoft/bonita-engine
@Override
public void deleteAllRoles() throws SRoleDeletionException {
try {
final DeleteAllRecord record = new DeleteAllRecord(SRole.class, null);
recorder.recordDeleteAll(record);
} catch (final SRecorderException e) {
throw new SRoleDeletionException("Can't delete all roles.", e);
}
}
代码示例来源:origin: bonitasoft/bonita-engine
@Override
public void createConnectorInstance(final SConnectorInstance connectorInstance) throws SConnectorInstanceCreationException {
try {
recorder.recordInsert(new InsertRecord(connectorInstance), CONNECTOR_INSTANCE);
} catch (final SRecorderException e) {
throw new SConnectorInstanceCreationException(e);
}
}
代码示例来源:origin: bonitasoft/bonita-engine
@Override
public void deleteFlowNodeInstance(final SFlowNodeInstance sFlowNodeInstance) throws SFlowNodeDeletionException {
try {
recorder.recordDelete(new DeleteRecord(sFlowNodeInstance), FLOWNODE_INSTANCE);
} catch (final SBonitaException e) {
throw new SFlowNodeDeletionException(e);
}
}
代码示例来源:origin: bonitasoft/bonita-engine
private void updateProcessInstance(final SProcessInstance processInstance, final EntityUpdateDescriptor descriptor, final String eventType)
throws SProcessInstanceModificationException {
try {
recorder.recordUpdate(UpdateRecord.buildSetFields(processInstance, descriptor), eventType);
} catch (final SRecorderException e) {
throw new SProcessInstanceModificationException(e);
}
}
代码示例来源:origin: bonitasoft/bonita-engine
@Override
public void deleteAllExternalIdentityMappings() throws SExternalIdentityMappingDeletionException {
try {
final DeleteAllRecord record = new DeleteAllRecord(SExternalIdentityMapping.class, null);
recorder.recordDeleteAll(record);
} catch (final SRecorderException e) {
throw new SExternalIdentityMappingDeletionException("Can't delete all process external identity mappings ", e);
}
}
代码示例来源:origin: bonitasoft/bonita-engine
SPageMapping insert(final SPageMappingImpl entity) throws SObjectCreationException {
try {
recorder.recordInsert(new InsertRecord(entity), PAGE_MAPPING);
} catch (final SRecorderException e) {
throw new SObjectCreationException(e);
}
return entity;
}
代码示例来源:origin: bonitasoft/bonita-engine
public void deleteArchivedFlowNodeInstance(final SAFlowNodeInstance saFlowNodeInstance) throws SFlowNodeDeletionException {
try {
recorder.recordDelete(new DeleteRecord(saFlowNodeInstance), "ARCHIVED_FLOWNODE_INSTANCE");
} catch (final SRecorderException e) {
throw new SFlowNodeDeletionException(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);
}
}
内容来源于网络,如有侵权,请联系作者删除!