Skip to content

Global Data Object Selector for User Tasks#739

Merged
jjoderis merged 21 commits into
mainfrom
ms/global-data-object
May 27, 2026
Merged

Global Data Object Selector for User Tasks#739
jjoderis merged 21 commits into
mainfrom
ms/global-data-object

Conversation

@Zayn-Javed
Copy link
Copy Markdown
Contributor

@Zayn-Javed Zayn-Javed commented May 12, 2026

Added support for selecting global data objects (organization, worker, and process-initiator data) in user task forms, allowing flexible variable binding to organizational data.

Summary

1. New Global Data Tree Builder (global-data-tree.ts)

  • Created hierarchical tree structure for three data scopes: @worker, @process-initiator, and @organization
  • Each scope displays common-user-data and user-info with different path prefixes for backend resolution
  • Organized fields under non-selectable parent nodes ("Data" and "User Info") for clarity

2. Enhanced Data Object Selection Modal (DataObjectSelectionModal.tsx)

  • Added tabbed interface for selecting between process variables and global data objects
  • Integrated scope filter buttons with @process-initiator disabled when not in active instance

3. Improved Input Variable Settings (Input.tsx and ToolbarPlugin.tsx)

  • Added text truncation with ellipsis and hover tooltip for long variable names and an edit icon

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

Copy link
Copy Markdown
Contributor

@jjoderis jjoderis left a comment

Choose a reason for hiding this comment

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

Really nice new UI and functionality.

There are a few things I found that need to be changed before we can merge.

In the old selection for process variables it was not possible to select types for inputs that would not really work like list or object. This is now possible in the new UI but I think it shouldn't be. Could you change it so it works similar to before?

Comment thread src/management-system-v2/components/html-form-editor/_utils/ToolbarPlugin.tsx Outdated
Comment thread src/management-system-v2/components/html-form-editor/_utils/ToolbarPlugin.tsx Outdated
Comment thread src/management-system-v2/components/html-form-editor/elements/Input.tsx Outdated
Comment thread src/management-system-v2/lib/helpers/global-data-tree.ts Outdated
Comment thread src/management-system-v2/lib/helpers/global-data-tree.ts Outdated
@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

Comment thread src/management-system-v2/lib/helpers/global-data-tree.ts Outdated
@Zayn-Javed Zayn-Javed requested a review from jjoderis May 26, 2026 19:41
@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

Comment thread src/management-system-v2/components/html-form-editor/elements/Input.tsx Outdated
Comment thread src/management-system-v2/components/html-form-editor/elements/Input.tsx Outdated
@github-actions
Copy link
Copy Markdown

CLOUDRUN ACTIONS

✅ Successfully created Preview Deployment.

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

@jjoderis jjoderis merged commit a48b9d6 into main May 27, 2026
11 checks passed
@jjoderis jjoderis deleted the ms/global-data-object branch May 27, 2026 18:00
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