| java.lang.Object dalma.Workflow
All known Subclasses: org.kohsuke.donothing.ConversationImpl, dalma.test.exception.ConversationImpl, dalma.sample.hangman.HangmanWorkflow, com.example.ConversationImpl, org.kohsuke.javanet.devrolehandler.ConversationImpl, org.kohsuke.javanet.approval.ConversationImpl, dalma.impl.RunnableWorkflowImpl,
Workflow | abstract public class Workflow implements Runnable,Serializable(Code) | | Base class of a workflow program.
In Dalma, a workflow consists of two instances.
A
Conversation , which is always retained in memory
to act as the outer shell of a workflow, and
a
Workflow , which contains application state and
persisted to the disk. This class represents the inner shell part.
This class also defines a bunch of convenience methods for
workflow programs to access various parts of dalma.
author: Kohsuke Kawaguchi |
getLogger | protected Logger getLogger()(Code) | | Gets the
Logger for this workflow.
Logs recorded to this logger are persisted
as a part of
Conversation , and allows the monitoring
application (and users) to see what's going on.
|
run | abstract public void run()(Code) | | This method shall be overrided to implement the actual workflow code
(much like
Thread.run .
|
setOwner | public void setOwner(ConversationImpl owner)(Code) | | Invoked by the dalma implementation to set the owner.
Shall never be used by anyone else.
|
sleep | protected static void sleep(long delay, TimeUnit unit)(Code) | | Sleeps the workflow for the given amount of time.
This method differs from
Thread.sleep(long) in that
this method doesn't block the thread that's running workflow.
For this reason,
this method is recommended over
Thread.sleep(long) .
|
|
|