Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JBPM-9550 [GSS] (7.8.x) Business Central - Blank process diagram for … #1475

Merged
merged 1 commit into from Mar 11, 2021

Conversation

bxf12315
Copy link
Member

@bxf12315 bxf12315 commented Jan 8, 2021

…processes with long running tasks

Thank you for submitting this pull request

JIRA:
JBPM-9550

referenced Pull Requests: (please edit the URLs of referenced pullrequests if they exist)

kiegroup/droolsjbpm-integration#2422

How to retest this PR or trigger a specific build:
  • a pull request please add comment: Jenkins retest this

  • a full downstream build please add comment: Jenkins run fdb

  • a compile downstream build please add comment: Jenkins run cdb

  • a full production downstream build please add comment: Jenkins execute product fdb

  • an upstream build please add comment: Jenkins run upstream

@bxf12315
Copy link
Member Author

bxf12315 commented Jan 8, 2021

Jenkins run fdb

@bxf12315
Copy link
Member Author

bxf12315 commented Jan 8, 2021

Jenkins run fdb

@bxf12315
Copy link
Member Author

bxf12315 commented Jan 8, 2021

Jenkins run fdb

@@ -187,3 +187,4 @@ NavigationConfirmOkButtonText=Ok
NavigationConfirmMessage=Are you sure you want to go to Sub Process Diagram?
AlertPopupTitle=Can not navigate to Sub Process Diagram
AlertPopupMessage=There are multiple instances of the sub-process, please use the Sub Process Instances Panel instead.
CanNotGetTimerInstancesMessage=A long task is running and Timers cannot be displayed. Check again later.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This failure could be caused by other issues so I would recommend living it more generic, something like:

Suggested change
CanNotGetTimerInstancesMessage=A long task is running and Timers cannot be displayed. Check again later.
CanNotGetTimerInstancesMessage=Error trying to retrieve process instance timers details. Message: {0}

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@bxf12315
Copy link
Member Author

bxf12315 commented Jan 8, 2021

Jenkins run fdb

1 similar comment
@bxf12315
Copy link
Member Author

bxf12315 commented Jan 9, 2021

Jenkins run fdb

@jstastny-cz jstastny-cz removed their request for review January 14, 2021 07:06
@prashuts
Copy link

@bxf12315 Followed the steps as per ticket , I see issues after starting 'long.wait' instance - https://issues.redhat.com/browse/JBPM-9575 .
Please have a look once

@prashuts
Copy link

Jenkins run fdb

}).getProcessInstanceDiagramSummary(processInstance.getProcessInstanceKey(),
preferences.getProcessInstanceDiagramCompletedNodeColor(),
preferences.getProcessInstanceDiagramCompletedNodeBorderColor(),
preferences.getProcessInstanceDiagramActiveNodeBorderColor());
}

protected void loadTimerInstances() {
if (processInstance.getState() == 1) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we have the state as a constant somewhere? Would be nice to replace the literal here.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you are right. Done

@bxf12315
Copy link
Member Author

Jenkins run fdb

@bxf12315
Copy link
Member Author

Jenkins retest this

@prashuts
Copy link

prashuts commented Feb 4, 2021

@bxf12315 i see issue still persists (https://issues.redhat.com/browse/JBPM-9575) but its random , inconsistent. Please have a look

@bxf12315
Copy link
Member Author

bxf12315 commented Feb 8, 2021

@bxf12315 i see issue still persists (issues.redhat.com/browse/JBPM-9575) but its random , inconsistent. Please have a look

please try again.

@bxf12315
Copy link
Member Author

bxf12315 commented Feb 8, 2021

Jenkins run fdb

@kie-ci
Copy link

kie-ci commented Feb 8, 2021

Build finished. 1073 tests run, 0 skipped, 8 failed.

@bxf12315
Copy link
Member Author

bxf12315 commented Mar 2, 2021

Jenkins run fdb

@jstastny-cz
Copy link

@cristianonicolai @nmirasch can you please review again with regards to https://issues.redhat.com/browse/JBPM-9575 and advise?

@jstastny-cz
Copy link

The Unexpected error dialog is considered a blocking issue, please see how the exception can be caught - I mean we're already processing it using the notifications, so we should have a fair grasp on the exception we're actually processing.

@cristianonicolai
Copy link
Contributor

@jstastny-cz the problem is not gone as to access timer info, we actually end up in a timeout sync with the process instance. If a timeout exception is not acceptable we need to look if it is possible to retrieve the same or similar information for timers without ending up in a concurrent call to the engine.

@jstastny-cz
Copy link

jstastny-cz commented Mar 4, 2021

@cristianonicolai I would say we want to handle the exception so that it does not bubble up into logs, nor to UI as Unexpected Error Dialog. I am considering the "Expected result" section of JBPM-9550, which states that no error log appears there (which is tied closely to the Unexpected Error Dialog showing up anyway).

@cristianonicolai
Copy link
Contributor

@bxf12315 @jstastny-cz so this is a partial fix only, it doesnt solve the entire issue. It needs to be look into further to try to avoid the exception at all.

@bxf12315
Copy link
Member Author

dependent on kiegroup/droolsjbpm-integration#2422

@bxf12315
Copy link
Member Author

Jenkins run fdb

@bxf12315
Copy link
Member Author

Jenkins retest this

@prashuts
Copy link

Jenkins run fdb

1 similar comment
@bxf12315
Copy link
Member Author

Jenkins run fdb

@elguardian elguardian merged commit 86cc86a into kiegroup:master Mar 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants