Dieser Inhalt ist in der von Ihnen ausgewählten Sprache nicht verfügbar.

9.4.6. Performing a task


To begin work on a task, we use either @StartTask or @BeginTask on the listener method:
@StartTask public String start() { ... }
Copy to Clipboard Toggle word wrap
Alternatively, we can begin work on a task with pages.xml:
<page>
  <start-task />
</page>
Copy to Clipboard Toggle word wrap
These annotations begin a special kind of conversation that is significant in terms of the overarching business process. Work done by this conversation has access to state held in the business process context.
If we end the conversation with @EndTask, Seam signals the completion of the task:
@EndTask(transition="completed") 
public String completed() { ... }
Copy to Clipboard Toggle word wrap
Alternatively, we can use pages.xml:
<page>
  <end-task transition="completed" />
</page>
Copy to Clipboard Toggle word wrap
You can also use EL to specify the transition in pages.xml.
At this point, jBPM will continue to execute the business process definition. (In more complex processes, several tasks may need to be completed before process execution can resume.)
Please refer to the jBPM documentation for a more thorough overview of the sophisticated features that jBPM provides for managing complex business processes.
Nach oben
Red Hat logoGithubredditYoutubeTwitter

Lernen

Testen, kaufen und verkaufen

Communitys

Über Red Hat Dokumentation

Wir helfen Red Hat Benutzern, mit unseren Produkten und Diensten innovativ zu sein und ihre Ziele zu erreichen – mit Inhalten, denen sie vertrauen können. Entdecken Sie unsere neuesten Updates.

Mehr Inklusion in Open Source

Red Hat hat sich verpflichtet, problematische Sprache in unserem Code, unserer Dokumentation und unseren Web-Eigenschaften zu ersetzen. Weitere Einzelheiten finden Sie in Red Hat Blog.

Über Red Hat

Wir liefern gehärtete Lösungen, die es Unternehmen leichter machen, plattform- und umgebungsübergreifend zu arbeiten, vom zentralen Rechenzentrum bis zum Netzwerkrand.

Theme

© 2025 Red Hat