getting DisplayName for ActivityId

1
0
-1

We are using Bonita 7.2 Subscription edition,When we are trying to get displayname from List , we are seeing displayname is coming only when activity is in completed state, if activity is in initiated/executing, we are getting null for the displayName. Are we missing something?

for (final ArchivedActivityInstance activity : activityList) {
            log.info("activityName: " + activity.getName() + " displayName: " + activity.getDisplayName()
                    + " state " + activity.getState());
}

this is what I am getting in my logs..
2017-01-20 16:41:41,235 bpm-helper [http-nio-10105-exec-7]
activityName: Sample displayName: null state executing
2017-01-20 16:41:41,235 bpm-helper [http-nio-10105-exec-7]
activityName: Sample displayName: Samplestate completed

Why that displayName is null when that is executing?

1 answer

1
0
-1

Found out one way to do this,
if that task is in initializing stage, then use sourceobjectid in ArchActivityInstance to get ActivityInstance and then get name from that.
Please help if there is better way.

Notifications