Skip to content

Instance View #731

Merged
jjoderis merged 16 commits intomainfrom
instance-view-ui
Apr 20, 2026
Merged

Instance View #731
jjoderis merged 16 commits intomainfrom
instance-view-ui

Conversation

@Zayn-Javed
Copy link
Copy Markdown
Contributor

Summary

  1. Instance select dropdown now shows the sorted instance (always new instance on top)

  2. Reorganized the Start/Resume/Pause/Stop buttons:

  3. Start new instance button is now conditionally shown based on whether the process has a plain start event.

  4. Added new button with spinning green icon when process is active, static black when inactive. This Button only appears when the current process version has at least one Timer Start Event

  5. Made the Resume/Pause/Stop group to a 2-icon-group. The Resume icon (Play symbol) instead of the Pause icon is now shown if the process is paused.

  6. Added GET /process/:definitionId/versions/:version/active endpoint to retrieve the real activation state of a deployed process version from the engine

  7. Activation state is fetched from the backend on every page load so navigating away and back always reflects the real state

@Zayn-Javed Zayn-Javed changed the title Instance view UI Instance View Mar 31, 2026
@github-actions

This comment has been minimized.

Comment thread src/engine/universal/distribution/src/routes/ProcessInstanceRoutes.js Outdated
};
}

const process = engine._versionProcessMapping[version];
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think I wouldn't use these kinds of access to "private" members of the engine outside the file in which engine is defined. Maybe create a new function "isProcessVersionDeployed" similar to "undeployProcessVersion" in "engine.js" and check in there if the version is deployed in the execution environment.

Comment thread src/engine/universal/distribution/src/routes/ProcessInstanceRoutes.js Outdated
Comment thread src/management-system-v2/lib/engines/server-actions.ts Outdated
@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

*/
isProcessVersionDeployed(versionId) {
const process = this._versionProcessMapping[versionId];
if (!process) throw new Error(`Version ${versionId} is not deployed on this engine.`);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

What I meant with "check if the version is deployed to this engine" was that you should check if the version is stored in the database of the engine. If not return an error.
If it is, check if the version is deployed. If the version or the entire process is not deployed just return {active: false} otherwise return the value of process.isDeployed();.
You already changed that you return a "success" with { active: false } when you cannot find an instance of this engine class for the process, which means the entire process was not deployed, so I think it is just consistent to do the same here (if (!process) return false;) when the version is not deployed.

Copy link
Copy Markdown
Contributor Author

@Zayn-Javed Zayn-Javed Apr 16, 2026

Choose a reason for hiding this comment

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

done. please have a look

@github-actions

This comment has been minimized.

@github-actions
Copy link
Copy Markdown

CLOUDRUN ACTIONS

✅ Successfully created Preview Deployment.

https://pr-731---ms-server-staging-c4f6qdpj7q-ew.a.run.app

@jjoderis jjoderis merged commit 7cfffb3 into main Apr 20, 2026
32 of 33 checks passed
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.

2 participants