66 Commits

Author SHA1 Message Date
mytharcher
7f35abe348 refactor(plugin-workflow): change task center popup logic 2025-04-13 15:36:49 +08:00
Junyi
e65ff559c2
fix(plugin-workflow): fix loading enabled workflows list with stats (#6642)
* fix(plugin-workflow): fix loading enabled workflows list with stats

* fix(plugin-workflow): add fallback logic to make sure workflow has stats
2025-04-11 08:46:14 +08:00
Junyi
85c073f87e
refactor(plugin-workflow): optimize save job logic (#6613)
* refactor(plugin-workflow): optimize save job logic

* fix(plugin-workflow): fix test cases
2025-04-06 18:22:00 +08:00
nocobase[bot]
5e70257416 Merge branch 'main' into next 2025-04-01 00:34:28 +00:00
Junyi
ce28c68018
refactor(plugin-workflow): improve code of schedule trigger (#6589) 2025-04-01 08:34:06 +08:00
Junyi
2aa892a716
refactor(plugin-workflow): split executed columns to stats tables (#6534)
* refactor(plugin-workflow): split executed columns to stats table

* fix(plugin-workflow): fix client executed

* fix(plugin-workflow): fix test case

* fix(plugin-workflow): fix migration

* chore(plugin-workflow): remove unused file

* chore(plugin-workflow): remove stashed code
2025-03-27 11:30:17 +08:00
Junyi
ec9dbe865a
fix(plugin-workflow): generate workflow key (#6567) 2025-03-26 21:40:23 +08:00
Junyi
21857c4db5
fix(plugin-workflow): fix legacy tasks count after workflow deleted (#6493)
* fix(plugin-workflow): fix legacy tasks count after workflow deleted

* fix(plugin-workflow): fix locale
2025-03-18 17:07:53 +08:00
Junyi
cba610ecc8
fix(plugin-workflow): fix tasks count (#6474)
* fix(plugin-workflow): fix tasks count

* fix(plugin-workflow): add filter

* fix(plugin-workflow): always refresh all counts

* refactor(plugin-workflow): change to delete tasks when workflow deleted

* feat(plugin-workflow): add reload when click menu link
2025-03-16 15:04:20 +08:00
Junyi
e5507d0758
refactor(plugin-workflow): change task center api and ui (#6272)
* refactor(plugin-workflow): change task center api and ui

* fix(client): add className property for Grid.Col

* refactor(plugin-workflow): adjust tasks menu style

* fix(plugin-workflow): fix menu title

* feat(plugin-workflow): automatically update tasks number

* fix(plugin-workflow): ignore ws if not exist

* fix(plugin-workflow): fix compatibility of no user approvals

* refactor(server): revert ws api back

* fix(plugin-workflow-manual): fix migration and renamed test cases

* fix(plugin-workflow): fix acl for task resource

* refactor(client): show badge number in toolbar

* fix(plugin-workflow): fix toolbar number

* fix(client): adjust badge font size

* refactor(plugin-workflow): adjust task center style and api

* fix(plugin-workflow-manual): fix constants

* refactor(plugin-workflow-manual): change legacy workflow todo block to list style

* test(plugin-workflow-manual): migrations

* refactor(plugin-workflow): add workflow title component

* fix(plugin-workflow-manual): fix e2e test cases

* fix(plugin-workflow): fix test kit
2025-03-10 19:58:33 +08:00
Junyi
2345ea62da
fix(plugin-workflow): fix acl for getting job (#6352) 2025-03-04 17:34:53 +08:00
citlalinda
aee8d9b7ce
feat: add stack limit to workflow (#6077)
* feat: add stack limit to workflow

* test: add stack limit test

---------

Co-authored-by: Linda <huanghui9850@gmail.com>
2025-01-18 14:16:15 +08:00
nocobase[bot]
222b4bc9da Merge branch 'main' into next 2025-01-17 15:46:56 +00:00
Junyi
04b817036f
fix(plugin-workflow): fix dispatch not process in preparing phase (#6087) 2025-01-17 23:46:29 +08:00
Junyi
04b3540739
chore(plugin-workflow): cherry pick (#6057)
* refactor(plugin-workflow): change api of manually execute (#5850)

* feat: add subflow node

* feat: add execution event

* feat: add force option

* feat: avoid recurring call

* feat: add stack to execution

* feat: add cyclic call validator

* feat: collection trigger add execution stack

* fix: stack

* fix: manual execute

* refactor(plugin-workflow): adjust api and implementent

* chore: revert locale back

* feat: trigger field set add scope variables

* feat: add changeOnSelect

* feat: variables support ID reference

* feat: change locale

* refactor(plugin-workflow): support execute by passing filterByTk for a record

* refactor(plugin-workflow): adjust props name

* fix(plugin-workflow): fix execute variable context

* fix(plugin-workflow): fix variables and locales

* chore(plugin-workflow): remove demo code

* fix(plugin-workflow): fix import

* fix(plugin-workflow): fix build error

---------

Co-authored-by: mytharcher <mytharcher@gmail.com>

* fix(plugin-workflow): fix schedule picker value (#6039)

* fix(plugin-workflow): fix variable compoent onchange (#5964)

---------

Co-authored-by: shz <huanghui9850@gmail.com>
2025-01-15 17:42:49 +08:00
nocobase[bot]
de35229e64 Merge branch 'main' into next 2025-01-12 08:12:19 +00:00
Junyi
095ee3b23c
fix(plugin-workflow): fix schedule trigger conditions and logs (#6042)
* fix(plugin-workflow): fix schedule trigger conditions and logs

* fix(plugin-workflow): fix resume dispatch
2025-01-12 16:11:53 +08:00
nocobase[bot]
dc25e8a9d4 Merge branch 'main' into next 2025-01-10 11:42:53 +00:00
Junyi
2efa3eddea
fix(plugin-workflow): fix logger api (#6036) 2025-01-10 19:42:29 +08:00
mytharcher
ff526f9a78 Merge branch 'main' into next 2025-01-10 16:46:08 +08:00
Junyi
a3ae8032f4
fix(plugin-workflow): fix duplicate triggering (#6022)
* fix(plugin-workflow): fix duplicate triggering

* fix(plugin-workflow): await executing before resume

* fix(plugin-workflow): fix failed test case
2025-01-10 15:03:08 +08:00
ChengLei Shao
61e7a89067
refactor: export action (#5665)
* chore: export xlsx command

* chore: container service

* chore: report export progress

* chore: export

* chore: performInsert

* chore: export command

* chore: base exporter

* chore: limit option

* chore: export

* chore: export

* chore: types

* chore: ws socket with auth

* refactor: refactor exporter, change addRows method to handleRow method to support row-by-row processing

* chore: xlsx exporter

* chore: base exporter

* chore: export limit

* chore: import action

* chore: load websocket

* chore: import action

* chore: object to cli args

* chore: import options

* chore: import action

* chore: import runner

* chore: import action

* chore: import options

* chore: import options

* chore: plugin load event

* chore: test

* chore: i18n

* chore: i18n

* chore: i18n

* fix: ws auth status

* chore: cache in data source

* chore: load datasource

* chore: import with field alias

* fix: build

* fix: test

* fix: build

* fix: import schema settings

* fix: import action

* fix: import progress

* chore: template creator

* fix: import error message

* fix: import error message

* chore: test

* chore: workflow dispatch event

* chore: export alias

* fix: typo

* chore: error render

* fix: event error

* chore: send message to tags

* fix: test

* fix: import action setting
2024-12-31 20:16:03 +08:00
Junyi
aa8bc65be8
fix(plugin-workflow): fix transactions between data sources (#5916) 2024-12-21 09:50:00 +08:00
nocobase[bot]
a86da58955 Merge branch 'main' into next 2024-12-12 05:41:32 +00:00
Junyi
cd5b0dc4d8
fix(plugin-workflow): fix transaction when delete execution after processed (#5870) 2024-12-12 13:41:08 +08:00
katherinehhh
3723076cbe Merge branch 'next' into develop 2024-12-07 20:05:50 +08:00
Junyi
fb5c033524
fix(plugin-workflow): fix transaction across data sources (#5818) 2024-12-07 14:41:59 +08:00
Junyi
45b8a56eb7
feat(plugin-workflow): add manual execute workflow (#5664)
* feat(plugin-workflow): add manual execute workflow

* refactor(plugin-workflow): adjust ui and type

* feat(plugin-workflow-action-trigger): add manually execute

* fix(plugin-workflow): keep trigger action in workflows for action trigger

* fix(plugin-workflow): fix type

* fix(plugin-workflow): collection trigger transaction

* fix(plugin-workflow): fix type

* test(plugin-workflow): skip failed test case

* fix(plugin-workflow): fix transaction

* fix(plugin-workflow): fix schedule mode field bug

* fix(plugin-workflow): collection trigger executing error

* fix(plugin-workflow-action-trigger): fix payload and appends

* fix(plugin-workflow): skip changed logic when execute

* fix(plugin-workflow): fix collection field schedule context when execute manually

* refactor(plugin-workflow): change manually option name

* fix(plugin-workflow-action-trigger): fix test case
2024-12-03 21:56:58 +08:00
mytharcher
5824f1fb15 Merge branch 'next' into T-4910 2024-11-15 11:03:16 +08:00
Junyi
379ae83862
feat(plugin-workflow): add test run for nodes (#5407)
* feat(plugin-workflow): add test run for nodes

* fix(plugin-workflow): fix locale

* test(plugin-workflow): add test cases
2024-10-16 22:39:20 +08:00
mytharcher
98d58963ea fix(plugin-workflow): fix test case 2024-08-26 16:32:55 +08:00
mytharcher
df2841acb3 fix(plugin-workflow): fix send sync message with transaction 2024-08-26 16:32:55 +08:00
mytharcher
b61895d309 refactor(server): adapt to new api and fix test 2024-08-26 16:31:12 +08:00
GitHub Actions Bot
dc20cb5ec6 Merge branch 'main' into next 2024-07-30 06:43:19 +00:00
Junyi
8f6d2d5426
fix(plugin-workflow): fix admin role with workflow plugin permission can not delete executions (#4961)
* test(plugin-workflow): add test case for acl

* fix(plugin-workflow): fix acl snippets
2024-07-30 14:42:59 +08:00
Junyi
d5ff3167c9
refactor(server): simplify api for publishing sync message (#4912)
* refactor(server): simplify method invoking for publishing sync message

* feat(test): add mock-cluster for testing cluster cases

* refactor(server): simplify sync api

* refactor(server): simplify type of sync-manager
2024-07-20 23:26:50 +08:00
Junyi
1c9e71dbf6
feat(server): add cluster mode for starting app (#4895)
* feat(server): add cluster mode for starting app

* chore(env): adjust order of env item

* chore: sync in main data source

* chore: onSync in plugin

* refactor(server): change onSync to plugin method

---------

Co-authored-by: Chareice <chareice@live.com>
2024-07-18 23:23:23 +08:00
Junyi
a283fc3f77
feat(server): add sync-manager (#4780)
* feat(server): add sync-manager

* refactor(server): add appName to message

* refactor(server): refactor api

* refactor(plugin-workflow): precisely control workflow status change

* feat(plugin-fm): adapt storage sync event

* fix(server): fix type

* test(server): add test cases
2024-07-10 09:54:38 +08:00
Junyi
86a56ef7cc
refactor(plugin-workflow): add deferred option for async workflow triggering (#4772)
* feat(plugin-workflow): add deferred option for async workflow triggering

* fix(plugin-workflow): revert type back

* fix(plugin-workflow): fix status checking
2024-06-28 11:59:22 +08:00
Junyi
ca9b5b1f1e
test(plugin-workflow): check for duplicated triggering (#4762)
* test(plugin-workflow): check for duplicated triggering

* fix(plugin-workflow): fix test case
2024-06-26 22:20:12 +08:00
YANG QIA
d8e80ecb41
fix(logger): fix the issue where workflow log files do not output (#4657) 2024-06-13 22:53:02 +08:00
Junyi
bde1d1ee61
fix(plugin-workflow): fix trigger workflow acl (#4522) 2024-05-29 16:42:32 +08:00
ChengLei Shao
5f5d3f3d90
feat: strategy with resources list (#4312)
* chore: strategy with resources list

* chore: append strategy resource when collection loaded

* chore: test

* chore: no permission error

* chore: test

* fix: update strategy resources after update collection

* fix: test

* fix: snippet name

* chore: error class import
2024-05-11 23:08:50 +08:00
Junyi
31d91ebc83
fix(plugin-workflow): fix duplicated triggering schedule event in multiple apps (#4201)
* fix(plugin-workflow): adjust transaction level in schedule

* refactor(plugin-workflow): use unique event key instead of repeat-read isolation level

* fix(plugin-workflow): fix test case

* refactor(plugin-workflow): use uuid as event key when not specified

* chore(plugin-workflow): avoid conflict
2024-04-30 22:20:25 +08:00
jack zhang
62b2b5c68b
chore: add copyright information to the file header (#4028)
* fix: add license code

* fix: bug

* fix: bug

* fix: upgrade

* fix: improve

* chore: add copyright information to the file header

* fix: d.ts bug

* fix: bug

* fix: e2e bug

* fix: merge main

---------

Co-authored-by: chenos <chenlinxh@gmail.com>
2024-04-30 15:51:31 +08:00
Junyi
5bcaa9d11f
feat(plugin-workflow): add checker for intervally dispatching (#4119) 2024-04-21 14:23:13 +08:00
Junyi
773b7aef52
refactor(plugin-workflow): adjust comments (#3990) 2024-04-09 17:29:11 +08:00
Junyi
9f72b4e1ef
chore(plugin-workflow): add comments (#3959) 2024-04-08 12:18:08 +08:00
Junyi
1f59d4bed2
refactor(plugin-workflow): add transaction check from data source (#3857) 2024-03-29 09:09:12 +08:00
Junyi
407f887584
fix(plugin-workflow): fix processor options to pass any context (#3483) 2024-02-02 21:11:08 +08:00