Open tiagobento opened 2 weeks ago
@jomarko Sorry not sure if you already began reviewing it, but there's a new commit from @cimbalek here, fixing running the containers of process-compact-architecture
example on Ubuntu.
All buttons are bound to DMN instead of BPMN
opening the homescreen http://localhost:7771/ works
Sidebar.tsx
contains unused import NavItem
Readme start command should contain filter -F @kie-tools-examples/bpmn-editor-classic-on-webapp
π’ passed
Sidebar.tsx
contains unused import NavItem
Readme start command should contain filter -F @kie-tools-examples/dmn-editor-classic-on-webapp
π’ passed
Sidebar.tsx
contains unused import NavItem
Readme start command should contain filter -F @kie-tools-examples/dmn-editor-on-webapp
7778 should be used instead of 9102 in the text below
Open http://localhost:9102 to see the list of files bundled by Webpack, then choose an example:
- State Control: http://localhost:9102/state_control.html
- Read Only: http://localhost:9102/read_only.html
- With Included Models: http://localhost:9102/with_included_models.html
next in the code we have this:
resources: new Map<string, DmnEditorStandaloneResource>([
["path1/can-drive-types.dmn", { contentType: "text", content: loadFile("can-drive-types.dmn") }],
["path2/loan-pre-qualification.dmn", { contentType: "text", content: loadFile("loan-pre-qualification.dmn") }],
]),
however in real UI only can-drive-types
is available.
|
Readme build command is missing => no manual check done, struggled to build as KIE_TOOLS_BUILD__buildExamples=true pnpm -F @kie-tools-examples/kie-sandbox-commit-message-validation-service^... build:dev
Readme start command should contain the filter
Readme build and start command is missing. IIUC, this is actually not an example in the sense of being runnable ? Probably we should mention it in a readme.
Start command misses filter.
No manual check done. Do you have a link for a public base64png file on github that I could try for verification?
Start command dos not contain filter -F
part
is not consistent in naming:
kie-tools-examples-micro-frontends-multiplying-architecture-base64png-editor-vscode-extension
@kie-tools-examples/micro-frontends-multiplying-architecture-base64png-editor-vscode-extension
, this is also incompatible with the build command [1] KIE_TOOLS_BUILD__buildExamples=true pnpm -F @kie-tools-examples/micro-frontends-multiplying-architecture-base64png-editor-vscode-extension^... build:dev
Probably also build:prod
command should contain -F
part.
π΄ build command [1] failed
β > copyfiles -u 1 "src/**/*.{sass,scss,css}" dist/
ββ Running...
packages/vscode-extension build:dev$ rimraf dist && tsc -p tsconfig.json
β src/workspace/VsCodeResourceContentServiceForWorkspaces.ts(33,27): error TS2307: Cannot find module 'isomorphic-git' or its corresponding type declarations.
β src/workspace/VsCodeResourceContentServiceForWorkspaces.ts(81,10): error TS7006: Parameter 'p' implicitly has an 'any' type.
ββ Failed in 9.5s at /home/jomarko/kie-tools/packages/vscode-extension
/home/jomarko/kie-tools/packages/vscode-extension:
βERR_PNPM_RECURSIVE_RUN_FIRST_FAILβ @kie-tools-core/vscode-extension@0.0.0 build:dev: `rimraf dist && tsc -p tsconfig.json`
Exit status 2
No manual checks done, README looks fine.
No manual checks done. From README it is not clear to me how to start the example.
same as above ^
Start command in readme could include -F
part.
No checks done, no comments to code.
Readme start command could include -F
part probably
Similar issues as base64png vscode extension package
β [run-script-if] Finished 'pnpm build'
ββ Done in 9s
packages/editor build:dev$ rimraf dist && pnpm copy:css && tsc -p tsconfig.json
β > @kie-tools-core/editor@0.0.0 copy:css /home/jomarko/kie-tools/packages/editor
β > copyfiles -u 1 "src/**/*.{sass,scss,css}" dist/
ββ Done in 9.2s
packages/vscode-extension build:dev$ rimraf dist && tsc -p tsconfig.json
β src/workspace/VsCodeResourceContentServiceForWorkspaces.ts(33,27): error TS2307: Cannot find module 'isomorphic-git' or its corresponding type declarations.
β src/workspace/VsCodeResourceContentServiceForWorkspaces.ts(81,10): error TS7006: Parameter 'p' implicitly has an 'any' type.
ββ Failed in 6.1s at /home/jomarko/kie-tools/packages/vscode-extension
/home/jomarko/kie-tools/packages/vscode-extension:
βERR_PNPM_RECURSIVE_RUN_FIRST_FAILβ @kie-tools-core/vscode-extension@0.0.0 build:dev: `rimraf dist && tsc -p tsconfig.json`
Exit status 2
[edited]
π I am not able to use startContainers
script and follow readme steps, until I build the example with KOGITO_RUNTIME_version
as 999-SNAPSHOT
, otherwise user will get the error below when starting a process instance.
nator.beforeCompletion - failed for SynchronizationImple< 0:ffffac120005:a927:6735b50d:190, org.hibernate.resource.transaction.backend.jta.internal.synchronization.RegisteredSynchronization@1fcaee53 >: org.hibernate.exception.SQLGrammarException: could not execute statement [ERROR: column "recipient" is of type jsonb but expression is of type bytea
process-compact-architecture-service | Hint: You will need to rewrite or cast the expression.
process-compact-architecture-service | Position: 221] [insert into job_details (correlation_id,created,execution_counter,execution_timeout,execution_timeout_unit,fire_time,last_update,priority,recipient,retries,scheduled_id,status,trigger,id) values (?,?,?,?,?,?,?,?,?,?,?,?,?,?)]
process-compact-architecture-service | at org.hibernate.exception.internal.SQLStateConversionDelegate.convert(SQLStateConversionDelegate.java:91)
process-compact-architecture-service | at org.hibernate.exception.internal.StandardSQLExceptionConverter.convert(StandardSQLExceptionConverter.java:58)
process-compact-architecture-service | at org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:108)
process-compact-architecture-service | at org.hibernate.engine.jdbc.internal.ResultSetReturnImpl.executeUpdate(ResultSetReturnImpl.java:197)
process-compact-architecture-service | at org.hibernate.engine.jdbc.mutation.internal.AbstractMutationExecutor.performNonBatchedMutation(AbstractMutationExecutor.java:108)
process-compact-architecture-service | at org.hibernate.engine.jdbc.mutation.internal.MutationExecutorSingleNonBatched.performNonBatchedOperations(MutationExecutorSingleNonBatched.java:40)
process-compact-architecture-service | at org.hibernate.engine.jdbc.mutation.internal.AbstractMutationExecutor.execute(AbstractMutationExecutor.java:52)
process-compact-architecture-service | at org.hibernate.persister.entity.mutation.InsertCoordinator.doStaticInserts(InsertCoordinator.java:175)
process-compact-architecture-service | at org.hibernate.persister.entity.mutation.InsertCoordinator.coordinateInsert(InsertCoordinator.java:113)
process-compact-architecture-service | at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2863)
process-compact-architecture-service | at org.hibernate.action.internal.EntityInsertAction.execute(EntityInsertAction.java:104)
process-compact-architecture-service | at org.hibernate.engine.spi.ActionQueue.executeActions(ActionQueue.java:632)
process-compact-architecture-service | at org.hibernate.engine.spi.ActionQueue.executeActions(ActionQueue.java:499)
process-compact-architecture-service | at org.hibernate.event.internal.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:363)
process-compact-architecture-service | at org.hibernate.event.internal.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:41)```
We should mention `docker compose down` as prerequisite, I think.
**mvn clean package quarkus:dev** seems to work fine π’
π΄ there is a compilation error
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /home/jomarko/kie-tools/examples/process-user-tasks-subsystem/src/test/java/org/acme/travels/quarkus/ApprovalsProcessTest.java:[28,48] package org.jbpm.process.instance.impl.humantask does not exist
[ERROR] /home/jomarko/kie-tools/examples/process-user-tasks-subsystem/src/test/java/org/acme/travels/quarkus/ApprovalsProcessTest.java:[29,55] package org.jbpm.process.instance.impl.humantask.phases does not exist
[ERROR] /home/jomarko/kie-tools/examples/process-user-tasks-subsystem/src/test/java/org/acme/travels/quarkus/ApprovalsProcessTest.java:[30,47] package org.jbpm.process.instance.impl.workitem does not exist
Manual check passed, start command could maybe include -F
part.
No comments
Readme could contain at least information how to build and start the example.
General comments:
pnpm bootstrap
is always necessary.β Fixed
β Fixed
β Fixed
π‘ Updated the port. Will investigate the failures.
β There are no build instructions necessary here.. Simply "pnpm start" suffices.
β True. This is not runnable. Mentioned in the README.
β There are some in this repo! :) Or you can use the Base64 Editor VS Code Extension to create some based on PNG files.
β Nothing done.
β
Not having the scope (@kie-tools
) part in the name of the package is a requirement from the VS Code Marketplace. Fixed the build command. Build failed for you because you didn't bootstrap first, I guess?
β OK
β This is not runnable. I made it clear on the README now.
β Same as above.
β OK
π‘ Not sure I understand your feedback here...
β OK
β Please see the other VS Code extension example's comment from my end as they apply here too.
β True... this is expected, and we need to upgrade the Kogito version of the repo. I'll do it soon in a separate PR.
π‘ Weird... Will investigate. Thanks!
β OK
β Out of scope of this PR.
β Out of scope of this PR.
In this PR I'm improving almost all examples to have a more descriptive README and package name. I also split the huge
webapp
example to make our builds faster, separating theserverless-workflow-editor-on-webapp
example be built as part ofpartition1.txt
.In this PR:
examples/webapp
into several different examples, to make our builds faster and to have the examples have less boilerplate code, allowing users to focus on the content that matters for each individual component usage inside webapps:examples/bpmn-editor-classic-on-webapp
examples/dmn-editor-classic-on-webapp
examples/dmn-editor-on-webapp
examples/dmn-editor-standalone-on-webapp
examples/micro-frontends-multiplying-architecture-base64png-editor-on-webapp
examples/micro-frontends-multiplying-architecture-ping-pong-views-on-webapp
examples/micro-frontends-multiplying-architecture-todo-list-view-on-webapp
examples/serverless-workflow-editor-standalone-on-webapp
examples/commit-message-validation-service
toexamples/kie-sandbox-commit-message-validation-service
examples/jbpm-compact-architecture-example
toexamples/process-compact-architecture
example/drools-process-usertasks-quarkus-example
toexamples/process-user-tasks-subsystem
examples/ping-pong*
andexamples/todo-list*
packages withmicro-frontends-multiplying-architecture
, to make it clear that those examples are related to Multiplying Architecture. The "Micro-frontends" part is to not have them be confused with Compact Architecture, which is a completely unrelated term used to signify the embedding of Data-Index, Jobs Service, and Data-Audit on Process applications.packages
andexamples
folder.I know this is quite a lot, but there's not much difference in content. I recommend checking out this branch and looking at each of the changed examples individually, they're all quite small and simple, so shouldn't be a big effort to do it.