cancel
Showing results for 
Search instead for 
Did you mean: 

'My instances' can't see sub-process.

charoenrat
Champ in-the-making
Champ in-the-making
Hi,

Currently, I created the activiti workflow by calling the sub-process as example below:
1. main process A call sub process B.
2. sub process B link to another workflow.

When I start workflow A and monitor in "My Instances" screen, it'll show only the active task on the workflow A.
How it's possible to show the active task on the sub process also (workflow B)? when the workflow A is processing on the sub process.

Best regards,
Charoenrat L.
8 REPLIES 8

charoenrat
Champ in-the-making
Champ in-the-making
Someone have any suggestion on this?

frederikherema1
Star Contributor
Star Contributor
By "sub process B link to another workflow", do you mean you're using a call-activity? If a call-activity is started, the same "user" is used to populate the startedBy field in history, so subprocess itself should show up just fine in the explorer. Can you double-check the ACT_HI_PROCINST table STARTED_BY_ columns?

patcharataya
Champ in-the-making
Champ in-the-making
Hi,

Yes, the main process A is using a call-activity to call process B, which process B is also using a call-activiti to call process C. So, there are 3 level of calling process here.

You mentioned that, the same "user" is used to populate the startedBy field in history and the subprocess should show up just fine. We still cannot see the subprocess in the explorer (log in as admin, start and monitor the process under this user). Could you help to clarify this.

Also, we have checked the ACT_HI_PROCINST, the value in START_USER_ID_ and START_ACT_ID_ for all subprocess are NULL.

Is there any other property to be set in the process definition file in order to make the sub process visible in the explorer while the main process is running?

Thank you very much.

Da

jbarrez
Star Contributor
Star Contributor
Explorer uses following query to fetch the process definitions:

<code>
protected ProcessDefinitionQuery getBaseQuery(RepositoryService repositoryService) {
    return repositoryService
            .createProcessDefinitionQuery()
            .latestVersion()
            .active();
  }
</code>

Also, the START_USER_ID_ is not for this use case.

Can you confirm you have the process definition B and C in the ACT_RU_EXECTION table, with a foreign key to B and C?

charoenrat
Champ in-the-making
Champ in-the-making
Main process and sub process have existing in the table, main process is performanceNightlyCycle and sub process is anovaInterfaces.
However, as example data below, on My Instance screen is show only performanceNightlyCycle process.

11486 1 11461  11461 performanceNightlyCycle:7:2030   0 1 0 0 1 7
11487 1 11461  11485 performanceNightlyCycle:7:2030   0 0 1 0 1 4
11490 1 11461  11487 performanceNightlyCycle:7:2030  callAnovaInterfaces 1 0 1 0 1 4
11493 2 11493           anovaInterfaces:7:2029 11490  0 0 1 0 1 7
11461 2 11461           performanceNightlyCycle:7:2030  parallelgateway1 0 0 1 0 1 0
11499 1 11461  11486 performanceNightlyCycle:7:2030  clientNotificationTimer 1 0 1 0 1 4
11556 1 11493  11493 anovaInterfaces:7:2029  processSecurityImportFilesTask 1 0 1 0 1 0
11485 1 11461  11461 performanceNightlyCycle:7:2030   0 1 0 0 1 7
11558 1 11558           anovaAgentInterfacesTask:7:2032 11556  0 0 1 0 1 7
11570 1 11558  11558 anovaAgentInterfacesTask:7:2032  callAgentService 1 0 1 0 1 0
11572 2 11572           timedServiceTask:7:2025 11570  0 0 1 0 1 3
11580 1 11572  11572 timedServiceTask:7:2025  messageBusServiceTask 1 0 1 0 1 4

Best regards,
Chaoenrat L.

b_schnarr
Champ in-the-making
Champ in-the-making
I don´t know if it is the same issue: When user A starts a process, he sees the process instance under "My instances". User B is involved in this process (user task). In the user task, you can read :"Part of the process xyz". When User B klicks on that, the "My instances Tab" is opened, but empty. User B does not see the Process even though he is involved.

charoenrat
Champ in-the-making
Champ in-the-making
Hi,

do you have any idea on this? or maybe configuration I have to turn on?

Best regards,
Charoenrat L

sravankadium
Champ in-the-making
Champ in-the-making
Hey!!!.. Any thoughts on the above issue. We are observing same issue while using call activity. The process instance triggered via call activity is not displayed in the activiti explorer. Could anyone of you help me in resolving this issue.