JBoss Community

TaskService 's implemenation

created by wqe wqe in jBPM - View the full discussion

TaskService interface has 2 implementation , one is called LocalTaskService class and one is called SyncTaskServiceWrapper class.

 

In the SyncTaskServiceWrapper class , it contains an instance of another interface called AsyncTaskService .

 

All methods of the SyncTaskServiceWrapper that are specified by the TaskService interface will be delegated to AsyncTaskService .

 

So SyncTaskServiceWrapper works asynchronously or synchronously?? It is confusing when looking at the name of the class .

 

Should SyncTaskServiceWrapper is better rename to AsyncTaskServiceWraper as it wraps AsyncTaskService ??

Reply to this message by going to Community

Start a new discussion in jBPM at Community