org.activiti.engine.impl.persistence.entity.TaskEntityManager Java Examples
The following examples show how to use
org.activiti.engine.impl.persistence.entity.TaskEntityManager.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: UserTaskActivityBehavior.java From activiti6-boot2 with Apache License 2.0 | 5 votes |
public void trigger(DelegateExecution execution, String signalName, Object signalData) { CommandContext commandContext = Context.getCommandContext(); TaskEntityManager taskEntityManager = commandContext.getTaskEntityManager(); List<TaskEntity> taskEntities = taskEntityManager.findTasksByExecutionId(execution.getId()); // Should be only one for (TaskEntity taskEntity : taskEntities) { if (!taskEntity.isDeleted()) { throw new ActivitiException("UserTask should not be signalled before complete"); } } leave(execution); }
Example #2
Source File: ModifyTaskNameCmd.java From activiti-in-action-codes with Apache License 2.0 | 5 votes |
@Override public Task execute(CommandContext commandContext) { TaskEntityManager taskEntityManager = commandContext.getTaskEntityManager(); TaskEntity task = taskEntityManager.findTaskById(taskId); task.setName(taskName); task.update(); return task; }
Example #3
Source File: AbstractManager.java From activiti6-boot2 with Apache License 2.0 | 4 votes |
protected TaskEntityManager getTaskEntityManager() { return getProcessEngineConfiguration().getTaskEntityManager(); }
Example #4
Source File: ProcessEngineConfigurationImpl.java From flowable-engine with Apache License 2.0 | 4 votes |
protected void initSessionFactories() { if (sessionFactories == null) { sessionFactories = new HashMap<>(); if (dbSqlSessionFactory == null) { dbSqlSessionFactory = new DbSqlSessionFactory(); } dbSqlSessionFactory.setDatabaseType(databaseType); dbSqlSessionFactory.setIdGenerator(idGenerator); dbSqlSessionFactory.setSqlSessionFactory(sqlSessionFactory); dbSqlSessionFactory.setDbHistoryUsed(isDbHistoryUsed); dbSqlSessionFactory.setDatabaseTablePrefix(databaseTablePrefix); dbSqlSessionFactory.setTablePrefixIsSchema(tablePrefixIsSchema); dbSqlSessionFactory.setDatabaseCatalog(databaseCatalog); dbSqlSessionFactory.setDatabaseSchema(databaseSchema); dbSqlSessionFactory.setBulkInsertEnabled(isBulkInsertEnabled, databaseType); dbSqlSessionFactory.setMaxNrOfStatementsInBulkInsert(maxNrOfStatementsInBulkInsert); addSessionFactory(dbSqlSessionFactory); addSessionFactory(new GenericManagerFactory(AttachmentEntityManager.class)); addSessionFactory(new GenericManagerFactory(CommentEntityManager.class)); addSessionFactory(new GenericManagerFactory(DeadLetterJobEntityManager.class)); addSessionFactory(new GenericManagerFactory(DeploymentEntityManager.class)); addSessionFactory(new GenericManagerFactory(ModelEntityManager.class)); addSessionFactory(new GenericManagerFactory(ExecutionEntityManager.class)); addSessionFactory(new GenericManagerFactory(HistoricActivityInstanceEntityManager.class)); addSessionFactory(new GenericManagerFactory(HistoricDetailEntityManager.class)); addSessionFactory(new GenericManagerFactory(HistoricProcessInstanceEntityManager.class)); addSessionFactory(new GenericManagerFactory(HistoricVariableInstanceEntityManager.class)); addSessionFactory(new GenericManagerFactory(HistoricTaskInstanceEntityManager.class)); addSessionFactory(new GenericManagerFactory(HistoricIdentityLinkEntityManager.class)); addSessionFactory(new GenericManagerFactory(IdentityLinkEntityManager.class)); addSessionFactory(new GenericManagerFactory(JobEntityManager.class)); addSessionFactory(new GenericManagerFactory(ProcessDefinitionEntityManager.class)); addSessionFactory(new GenericManagerFactory(ProcessDefinitionInfoEntityManager.class)); addSessionFactory(new GenericManagerFactory(PropertyEntityManager.class)); addSessionFactory(new GenericManagerFactory(ResourceEntityManager.class)); addSessionFactory(new GenericManagerFactory(ByteArrayEntityManager.class)); addSessionFactory(new GenericManagerFactory(SuspendedJobEntityManager.class)); addSessionFactory(new GenericManagerFactory(TableDataManager.class)); addSessionFactory(new GenericManagerFactory(TaskEntityManager.class)); addSessionFactory(new GenericManagerFactory(TimerJobEntityManager.class)); addSessionFactory(new GenericManagerFactory(VariableInstanceEntityManager.class)); addSessionFactory(new GenericManagerFactory(EventSubscriptionEntityManager.class)); addSessionFactory(new GenericManagerFactory(EventLogEntryEntityManager.class)); addSessionFactory(new DefaultHistoryManagerSessionFactory()); } if (customSessionFactories != null) { for (SessionFactory sessionFactory : customSessionFactories) { addSessionFactory(sessionFactory); } } }
Example #5
Source File: CommandContext.java From flowable-engine with Apache License 2.0 | 4 votes |
public TaskEntityManager getTaskEntityManager() { return getSession(TaskEntityManager.class); }
Example #6
Source File: AbstractManager.java From flowable-engine with Apache License 2.0 | 4 votes |
protected TaskEntityManager getTaskManager() { return getSession(TaskEntityManager.class); }