[jbpm-commits] JBoss JBPM SVN: r1641 - api/trunk/modules/api/src/main/java/org/jboss/bpm/runtime.
do-not-reply at jboss.org
do-not-reply at jboss.org
Tue Jul 15 12:10:21 EDT 2008
Author: thomas.diesler at jboss.com
Date: 2008-07-15 12:10:20 -0400 (Tue, 15 Jul 2008)
New Revision: 1641
Modified:
api/trunk/modules/api/src/main/java/org/jboss/bpm/runtime/Token.java
Log:
javadoc
Modified: api/trunk/modules/api/src/main/java/org/jboss/bpm/runtime/Token.java
===================================================================
--- api/trunk/modules/api/src/main/java/org/jboss/bpm/runtime/Token.java 2008-07-15 16:03:55 UTC (rev 1640)
+++ api/trunk/modules/api/src/main/java/org/jboss/bpm/runtime/Token.java 2008-07-15 16:10:20 UTC (rev 1641)
@@ -42,22 +42,37 @@
private Process proc;
private ExecutionContext context;
+ /**
+ * Construct a Token with a given {@link Process} and {@link Attachments}
+ */
public Token(Process proc, Attachments att)
{
this.proc = proc;
this.context = new InitialContext(att);
}
+ /**
+ * Get the associated {@link Process}
+ */
public Process getProcess()
{
return proc;
}
+ /**
+ * Get the associated {@link ExecutionContext}
+ */
public ExecutionContext getExecutionContext()
{
return context;
}
+ /**
+ * Create a schallow copy of this Token.
+ * <p/>
+ * The content in the {@link ExecutionContext} will be
+ * copied by reference.
+ */
public Token createCopy()
{
return new Token(proc, context);
More information about the jbpm-commits
mailing list