cancel
Showing results for 
Search instead for 
Did you mean: 

Get startable by user processes, is it a bug?

sfigueras
Champ in-the-making
Champ in-the-making
Hi everyone,

I think I`ve found one little error on  ProcessEngines.getDefaultProcessEngine().getRepositoryService().createProcessDefinitionQuery().startableByUser() query.

If I set into my processes the usergroup or username in start node startable attribute, it`s ok. But, in my opinion, if I don`t specify anything, that process could be accessed by the user too. But, startableByUser() method just returns the processes with startable attributes filled.

How can I get only the processes with startable attributes non filled?

Thanks
8 REPLIES 8

sfigueras
Champ in-the-making
Champ in-the-making
getting up because those damned spams

sfigueras
Champ in-the-making
Champ in-the-making
No one? Smiley Sad

martin_grofcik
Confirmed Champ
Confirmed Champ
Hi,

I would say you have to use native query or custom SQL.

Regards
Martin

sfigueras
Champ in-the-making
Champ in-the-making
Thank you Martin,

But it is really strange, isn`t it?

It should be better if I could pass null value in startableByUser method, not?

Thanks.

trademak
Star Contributor
Star Contributor
Yes that's a valid point. The query should return processes that can be started by the provided user and processes that can be started by everyone. Can you create a JIRA issue for this?

Thanks,

sfigueras
Champ in-the-making
Champ in-the-making
Surely trademak, but how can I get an Activiti Jira user?

Thanks Smiley Happy

jbarrez
Star Contributor
Star Contributor
That is described here: http://activiti.org/community.html#codehausaccounts

Pull requests are another way to get it into the engine quickly 😉

ppcchh
Confirmed Champ
Confirmed Champ

Hello,

I face the exactly same issue four years after the OP Smiley Happy. I would like the process defs which do not have a potentialStarter set be returned by the queries having a startableByUser set.

If I use the following convention : 

  • A workflow is startable only for user which is a potentital starter or belonging to a group which is itself potential starter
  • A workflow which has no potential starter (no identity links) can be started by everyone.

Then how can I get the process defs startable for a given user ? It seems to be impossible without using native sql.

Do you know if a JIRA issue has been created ? Cannot find it.

Thanks !