Flow identifier in @FlowDefinition
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 127
- Forks
- 59
- Avg merge
- 23h
- Merged PRs (30d)
- 7
Description
```
@Produces @FlowDefinition
public Flow defineFlow(@FlowBuilderParameter FlowBuilder flowBuilder) {
String flowId = "flow1";
flowBuilder.id("unique", flowId);
flowBuilder.viewNode(flowId, "/" + flowId + "/" + flowId + ".xhtml").markAsStartNode();
return flowBuilder.getFlow();
}
```
can be simplified to:
```
@Produces @FlowDefinition("flow1")
public Flow defineFlow(@FlowBuilderParameter FlowBuilder flowBuilder) {
...
}
```
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the @FlowDefinition annotation and the FlowBuilder usage shown in the issue. Compare the current builder-based identifier with the proposed annotation value; done means the flow identifier can be supplied through @FlowDefinition("flow1") as illustrated.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100