...
Codeblock | ||
---|---|---|
| ||
umkickstarter -n de.pinuts.tutorial cd umkickstarter # Copy your partner license file to env/devel/cmsbs-conf/cmsbs.license |
Include dependency
Hinweis |
---|
Since UM 7.55 the SyncQueue plugin is already included and will be automatically installed by the installer. In this case you must not include the following dependency. |
Edit build.gradle
and add the following dependency:
Codeblock | ||
---|---|---|
| ||
dependencies { [...] runtime('de.pinuts.cmsbs:SyncQueue:1.35.50') } |
Now, setup and restart:
...
Now that we have a SyncQueue set up and a handler function in place to propagate any Customer updates, we can update our CommitUpdate to actually use the Queue:
Codeblock | ||
---|---|---|
| ||
import { queue } from "./queue.mjs";
[...]
/**
* @param {Entry} e
*/
postCommit(e) {
if (e.get('entrytype') == 'customer') {
queue.push({ oid: e.oid });
}
}
/**
* @param {Entry} e
*/
preRemove(e) {
if (e.get('entrytype') == 'customer') {
queue.push({ oid: e.oid });
}
}
[...] |
...