cancel
Showing results for 
Search instead for 
Did you mean: 

CMIS and Activiti. Is it possible?

charlie_k
Champ in-the-making
Champ in-the-making
Hello everyone,

I was trying to get a task list via OpenCMIS Workbench using queries (against Alfresco 5.0.a):

select * from bpm:task
select * from bpm:workflowTask


I did't receive any results (although I have >100 tasks created via Share application). So naturally, I am interested to know if that is possible or this functionality is not implemented in 5.0.a?

Also, I found these types (bpm:task, bpm:workflowTask) via OpenCMIS Workbench. But I created my own which extend bpm:workflowTask. This type was not listed ana I cannot query it via CMIS Query (all other types that I created and extend cmis:document are listed and work normally). Is this normal?
2 REPLIES 2

afaust
Legendary Innovator
Legendary Innovator
Hello,

you can't query workflows or tasks via CMIS. CMIS only affects objects that are stored as nodes in Alfresco. Workflows and tasks are not stored as nodes, instead they are maintained in the Activiti database tables. For accessing workflows, you need to use the Alfresco ReST / Public API. Currently, CMIS does not provide any support for workflows.
The reason you find these types via the workbench is that Alfresco uses the same type system to model workflow data as it uses for modelling documents, folders and other nodes. But these specific types are never instantiated in any way.

Regards
Axel

charlie_k
Champ in-the-making
Champ in-the-making
Thank you. That cleared things up.