Workflow bpmn validator
A Claude Code plugin that packages Alfresco extension development as slash commands, skills, and agents
npx -y skills add aborroy/aiup-alfresco --skill workflow-bpmn-validatorAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 12 stars12 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
Validates Alfresco Activiti BPMN 2.0 process definition files and companion workflow model XML for structural correctness: required namespaces, task assignees, variable naming conventions, process variable promotion pattern, formKey alignment, and forbidden Activiti 6/Flowable patterns. Trigger automatically when generating or editing *.bpmn files or *-workflow-model.xml files.
SKILL.md
5.1 KB, ~1.2k tokens by cl100k_base, as published. Nobody here has run it
Workflow BPMN Validator
Validate the given Alfresco Activiti BPMN process definition (and companion workflow model, if present) against these rules.
BPMN Namespace Validation
- Root element must be
<definitions>with BPMN 2.0 namespace:xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL" - REQUIRED:
xmlns:activiti="http://activiti.org/bpmn"— must be present; Alfresco Activiti extensions use this namespace - ERROR if present: Any
org.flowable.*class reference inclassattributes of<activiti:taskListener>,<activiti:executionListener>, or<serviceTask activiti:class="...">. ACS 26.1 uses Activiti 5.22.x; the Flowable API is not on the classpath.
Process Structure Validation
<process>element must have:idattribute (camelCase identifier)nameattribute (human-readable)isExecutable="true"
- WARNING if any
<startEvent>is missingactiviti:formKeyin a non-trivial process (more than one user task) - Every
<userTask>must have eitheractiviti:assigneeoractiviti:candidateGroups:- WARNING if a user task has neither — it will never be claimable
- WARNING if a user task that represents an approval step is missing
activiti:formKey
- Every
<exclusiveGateway>with multiple outgoing sequence flows must have<conditionExpression>on all but one outgoing flow:- ERROR if an outgoing flow from an exclusive gateway has no condition and is not marked as
default
- ERROR if an outgoing flow from an exclusive gateway has no condition and is not marked as
- Every
<serviceTask>must have eitheractiviti:classoractiviti:expressionoractiviti:delegateExpression:- WARNING for service tasks with none of these attributes (becomes a no-op)
Variable Naming Validation
- Scan all
<activiti:string>blocks inside<activiti:field name="script">elements and inside<conditionExpression>elements - ERROR if any call to
execution.setVariable(...)ortask.getVariableLocal(...)uses a variable name containing a colon (e.g.acme:outcome). The correct form uses underscore (acme_outcome). Alfresco maps content model properties{prefix}wf:{propName}→ process variable{prefix}wf_{propName}(colon → underscore). - ERROR if any
<conditionExpression>references a variable with a colon in the name (e.g.${acme:count == 2}). Use${acme_count == 2}.
Task Listener Validation
- Any
<activiti:taskListener>or<activiti:executionListener>using aclassattribute:- ERROR if the class is from
org.flowable.* - Allowed built-in classes:
org.alfresco.repo.workflow.activiti.tasklistener.ScriptTaskListener,org.alfresco.repo.workflow.activiti.listener.ScriptExecutionListener - INFO if the class is custom (not from
org.alfresco.*) — confirm it implementsorg.activiti.engine.delegate.TaskListener
- ERROR if the class is from
Timer Event Validation
- Every
<boundaryEvent>containing a<timerEventDefinition>must have:cancelActivityattribute explicitly set to"true"or"false"— WARNING if missing- Timer duration in ISO 8601 format inside
<timeDuration>:PT{N}S,PT{N}M,PT{N}H,P{N}D, or combinations — ERROR if the format does not match ISO 8601
Workflow Model Alignment
If a companion *-workflow-model.xml exists in the same module's model/ directory:
- Every
activiti:formKeyvalue in the BPMN must correspond to a<type name="...">declared in the workflow model:- ERROR if a formKey references a type not present in the workflow model
- The workflow model must import the
bpmnamespace:<import uri="http://www.alfresco.org/model/bpm/1.0" prefix="bpm"/>- ERROR if this import is missing
- Every workflow task type must extend
bpm:startTask,bpm:activitiOutcomeTask, orbpm:workflowTask:- WARNING if a type in the workflow model has no recognized
bpm:parent
- WARNING if a type in the workflow model has no recognized
- ERROR if any property in the workflow model uses
<mandatory enforced="true">— the integrity checker fires beforeaddAspect()writes properties, causing a spuriousIntegrityException
Bootstrap Registration Check
If a bootstrap-context.xml exists in the module's context/ directory:
- WARNING if it contains a
<bean>withparent="dictionaryModelBootstrap"that lists a.bpmnfile in itsmodelsproperty — BPMN files must be registered viaparent="workflowDeployer", notdictionaryModelBootstrap - WARNING if the
workflowDeployerbean has<prop key="redeploy">true</prop>— this causes duplicate process definitions on every restart
Output
Report all violations with:
- File path and element ID (BPMN) or type name (workflow model)
- Rule violated
- Suggested fix
If no violations are found, confirm: "BPMN and workflow model are valid for ACS 26.1 / Activiti 5.x."
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.
Gives 0 of the 12 instructions most quality gates skills give in ~1.2k tokens
Counted across 1,195 of the 2,094 authors here whose files we hold, read 2026-08-07
- Read the output and check the exit codein 54 of 1195, across 14 files
- Verify requirements using a line-by-line checklistin 53 of 1195, across 12 files
- Identify the verification command proving the claimin 51 of 1195, across 12 files
- Run the full verification commandin 50 of 1195, across 11 files
- Verify output confirms the claimin 49 of 1195, across 12 files
- Check version control diff after agent delegationin 46 of 1195, across 6 files
- State claim with evidencein 44 of 1195, across 4 files
- Run the test suitein 33 of 1195, across 26 files
- Keep state in memory by defaultin 27 of 1195, across 6 files
- Make prototype runnable with one commandin 26 of 1195, across 5 files
- Produce a verification reportin 25 of 1195, across 14 files
- Detect the package manager from lockfilesin 24 of 1195, across 5 files
Said here and by no other author read
- require bpmn 2.0 and activiti namespaces
- reject org.flowable class references
- require id name and isExecutable on process elements
- require assignee or candidateGroups on user tasks
- require conditions on exclusive gateway flows
- reject colons in variable names
Grouped from the skills themselves: near-identical wordings counted once, and counted by distinct author, so one author publishing three of these counts once. Length counted with cl100k_base; the agent that loads this file may tokenize it differently.