Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce a Annotaton based API to impl Imixs-Workflow #783

Open
rsoika opened this issue May 12, 2022 · 0 comments
Open

Introduce a Annotaton based API to impl Imixs-Workflow #783

rsoika opened this issue May 12, 2022 · 0 comments

Comments

@rsoika
Copy link
Member

rsoika commented May 12, 2022

See this article and the idea how to use annotations:

https://dzone.com/articles/ultra-fast-microservices-part-2-when-microstream-m

public class MyBusinessCase {
    private final long id;
    private final String name;
    private final String description;
    private final int rating;

    @WorkflowInstance
    public Product(
            @WorkitemProperty("id") final long id,
            @WorkitemProperty("name") final String name,
            @WorkitemProperty("description") final String description,
            @WorkitemProperty("rating") final int rating){
            //...
            }

}

...and instantiating the engine

@WorkflowGroup("Invoice")
public class MyWorkflow {
    
    public void create(final Product product) {
       ..
    }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant