Java Doc for BpmService.java in  » Project-Management » EmForce » org » emforge » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Project Management » EmForce » org.emforge 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.emforge.BpmService

All known Subclasses:   org.emforge.jbpm.BpmServiceImpl,  org.emforge.test.BpmTestServiceImpl,
BpmService
public interface BpmService (Code)
Web-Service for working with BPM Data


Field Summary
final public static  intWORKFLOW_LAST_VERSION
    


Method Summary
 BooleanaddComment(long taskId, String comment)
    
 WorkflowTOaddNewWorkflow(byte[] workflowContent, String comment)
    
 StepTOassignStep(StepTO step, String newActor, String comment)
    
 booleancanAddAttachment(long taskId)
    
 booleancanAddNewWorkflow()
    
 booleancanChangeStep(StepTO step)
    
 booleancanChangeTask(TaskTO task)
    
 booleancanCommentTask(long taskId)
    
 booleancanCompleteStep(StepTO step)
    
 booleancanEditTaskDescription(TaskTO task)
    
 booleancanReadTask(long stepId)
    
 booleancanReassignSteps(TaskTO task)
    
 booleancanStartNewTask(String projectName)
    
 booleancanStopTask(TaskTO task)
    
 StepTOchangeStepPriority(StepTO step, PriorityTO newPriority, String comment)
    
 TaskTOcompleteStep(StepTO step, String transitionName, String comment)
    
 List<TaskTO>findTasks(String milestoneName, TaskStatus taskStatus, boolean includeSubTasks)
     Find tasks We will have reporting service, allowed us to generate reports for any criteria.
 List<StepTO>getActiveSteps(String projectName)
    
 StepTO[]getBlockingSteps(long taskId)
    
 TaskTO[]getBlockingSubTasks(long taskId)
    
 TaskTO[]getFinishedSubTasks(long taskId)
    
 StepTOgetStep(long stepId)
    
 TaskTOgetTask(long taskId)
    
 CommentTO[]getTaskComments(long taskId)
    
 HistoryTO[]getTaskHistory(long taskId)
    
 WorkflowTO[]getUsedWorkflows(String name, int version)
    
 WorkflowTOgetWorkflowById(long workflowId)
     Return workflow by id
Parameters:
  workflowId - - id of workflow Workflow object for specified id.
 WorkflowTOgetWorkflowByName(String name, int version)
     Return workflow by name and version
Parameters:
  name - - name of workflow
Parameters:
  version - - version.
 HistoryTO[]getWorkflowHistory(String name, int version)
    
 byte[]getWorkflowIcon(long workflowId)
    
 byte[]getWorkflowImage(long workflowId)
    
 StepTOgetWorkflowStartStep(String name, int version, String projectName)
     Returns start step for specified workflow. It is "empty" task - it's id is null since it is not created.
 WorkflowTO[]getWorkflows()
    
 BooleanhasTask(long taskId)
    
 BooleanhasWorkflow(String name, int version)
     Return true if workflow exists
Parameters:
  name - - name of workflow to find
Parameters:
  version - - version.
 BooleanisPossibleRequestStatus(long stepId)
    
 BooleanrequestStatus(long stepId, String request)
    
 BooleansaveTask(TaskTO task, String comment)
    
 TaskTOstartSubTask(long parentStepId, StepTO startStep, String transitionName, String tempPageName)
    
 TaskTOstartTask(StepTO startStep, String transitionName, String tempPageName)
     Starts new task
Parameters:
  startStep - - information about started task like: priority, variable values, required by start task, dueDate and so on
Parameters:
  transitionName - - name of transition, should be used for completing start-task
Parameters:
  tempPageName - - in case then description and attachments was specified for task,they were stored in temporare Wiki-Page.
 BooleanstopTask(long taskId, String comment)
    
 StringwriteWorkflowImageTable(WorkflowTO i_workflow, TaskTO i_task, StepTO i_step)
    

Field Detail
WORKFLOW_LAST_VERSION
final public static int WORKFLOW_LAST_VERSION(Code)





Method Detail
addComment
Boolean addComment(long taskId, String comment) throws EmForgeException(Code)
Add comment for specified Task created Comment object



addNewWorkflow
WorkflowTO addNewWorkflow(byte[] workflowContent, String comment) throws EmForgeException(Code)
Add new workflow
Parameters:
  workflowContent - - content of par-file
Parameters:
  comment - - comment for this deployment create workflow



assignStep
StepTO assignStep(StepTO step, String newActor, String comment) throws EmForgeException(Code)
Assign step to new owner
Parameters:
  step -
Parameters:
  newActor -
Parameters:
  comment -
throws:
  EmForgeException -



canAddAttachment
boolean canAddAttachment(long taskId)(Code)
Is Current user allowed to add attachment for task
Parameters:
  taskId -



canAddNewWorkflow
boolean canAddNewWorkflow()(Code)
Is current user allowed to add new workflows



canChangeStep
boolean canChangeStep(StepTO step)(Code)
Is current user allowed to change the step
Parameters:
  stepId -



canChangeTask
boolean canChangeTask(TaskTO task)(Code)
Is current user allowed to change the task
Parameters:
  taskId -



canCommentTask
boolean canCommentTask(long taskId)(Code)
Is current user allowed to add comment for the task
Parameters:
  taskId -



canCompleteStep
boolean canCompleteStep(StepTO step)(Code)
is current user allowed to complete specified step
Parameters:
  stepId -



canEditTaskDescription
boolean canEditTaskDescription(TaskTO task)(Code)
Is Current User allowed to edit task description
Parameters:
  taskId -



canReadTask
boolean canReadTask(long stepId)(Code)
is current user allowed to read specified task
Parameters:
  stepId -



canReassignSteps
boolean canReassignSteps(TaskTO task)(Code)
Is Current user allowed to reassign the steps for specified task
Parameters:
  taskId -



canStartNewTask
boolean canStartNewTask(String projectName)(Code)
Is Current user allowed to start new tasks for specified project
Parameters:
  projectName -



canStopTask
boolean canStopTask(TaskTO task)(Code)
Is current user allowed to close the specified task
Parameters:
  taskId -



changeStepPriority
StepTO changeStepPriority(StepTO step, PriorityTO newPriority, String comment) throws EmForgeException(Code)
Change Step Priority
Parameters:
  step -
Parameters:
  newPriority -
Parameters:
  comment -
throws:
  EmForgeException -



completeStep
TaskTO completeStep(StepTO step, String transitionName, String comment) throws EmForgeException(Code)
Complete step
Parameters:
  step - - step to be completed with all required variables set
Parameters:
  transitionName - - transaction name, should be used for completion
Parameters:
  comment - - comment related to completion - new state of Task processed
throws:
  EmForgeException -



findTasks
List<TaskTO> findTasks(String milestoneName, TaskStatus taskStatus, boolean includeSubTasks) throws EmForgeException(Code)
Find tasks We will have reporting service, allowed us to generate reports for any criteria. But - we will need also some easy-reporting - there we will able find and display list of tasks This is initial version of method, implemented this 'easy-reporting' it's interface will be changed in future to support more options for search
Parameters:
  milestoneName - -
Parameters:
  status -
Parameters:
  includeSubTasks -



getActiveSteps
List<StepTO> getActiveSteps(String projectName) throws EmForgeException(Code)
Returns List of Active Tasks for Logged-In user for Specified Project
Parameters:
  projectName -



getBlockingSteps
StepTO[] getBlockingSteps(long taskId) throws EmForgeException(Code)
Returns Blocking Steps for specified Task



getBlockingSubTasks
TaskTO[] getBlockingSubTasks(long taskId) throws EmForgeException(Code)
Returns list of currently active subtasks for specified task
Parameters:
  taskId - - parent task id list of active sub-tasks



getFinishedSubTasks
TaskTO[] getFinishedSubTasks(long taskId) throws EmForgeException(Code)
Returns list of finished subtasks for specified task
Parameters:
  taskId - - parent task id list of finished sub-tasks



getStep
StepTO getStep(long stepId) throws EmForgeException(Code)
Returns Specific Step by ID
Parameters:
  stepId - - step to return step object, or null if nothing found



getTask
TaskTO getTask(long taskId) throws EmForgeException(Code)
Returns Specific Task by ID
Parameters:
  taskId - - task to return task object, or null if nothing found



getTaskComments
CommentTO[] getTaskComments(long taskId) throws EmForgeException(Code)
Returns Comments for Specified Task
Parameters:
  taskId - - id of task we need to get comments array of task comments



getTaskHistory
HistoryTO[] getTaskHistory(long taskId) throws EmForgeException(Code)
Get task history
Parameters:
  taskId - - task id to get history
throws:
  EmForgeException -



getUsedWorkflows
WorkflowTO[] getUsedWorkflows(String name, int version) throws EmForgeException(Code)
Returns list of workflows, used in specified workflow
Parameters:
  name - - workflow name
Parameters:
  version - - workflow version
throws:
  EmForgeException -



getWorkflowById
WorkflowTO getWorkflowById(long workflowId) throws EmForgeException(Code)
Return workflow by id
Parameters:
  workflowId - - id of workflow Workflow object for specified id. Null is not found



getWorkflowByName
WorkflowTO getWorkflowByName(String name, int version) throws EmForgeException(Code)
Return workflow by name and version
Parameters:
  name - - name of workflow
Parameters:
  version - - version. If -1 is used - means last version of specified workflow Workflow object for specified name and version. Null is not found



getWorkflowHistory
HistoryTO[] getWorkflowHistory(String name, int version) throws EmForgeException(Code)
Retunrs history for workflow versions
Parameters:
  name - - workflow name to get history
Parameters:
  version - - workflow version to get history
throws:
  EmForgeException -



getWorkflowIcon
byte[] getWorkflowIcon(long workflowId)(Code)
Method used in Process Icon Servlet
Parameters:
  workflowId -



getWorkflowImage
byte[] getWorkflowImage(long workflowId)(Code)
Returns workflow image
Parameters:
  workflowId -



getWorkflowStartStep
StepTO getWorkflowStartStep(String name, int version, String projectName) throws EmForgeException(Code)
Returns start step for specified workflow. It is "empty" task - it's id is null since it is not created. It should be used for filling required variables and any other required information, getting information about transition, and starting new task later with passing this step back
Parameters:
  name - - started workflow name
Parameters:
  version - - started workflow version
Parameters:
  projectName - - name of project, for which workflow is created



getWorkflows
WorkflowTO[] getWorkflows() throws EmForgeException(Code)
Return list of Workflows, stored in the system



hasTask
Boolean hasTask(long taskId)(Code)
Returns trie if task for specified workflow exists
Parameters:
  taskId - - task to find



hasWorkflow
Boolean hasWorkflow(String name, int version)(Code)
Return true if workflow exists
Parameters:
  name - - name of workflow to find
Parameters:
  version - - version. If -1 is used - means last version of specified workflow



isPossibleRequestStatus
Boolean isPossibleRequestStatus(long stepId) throws EmForgeException(Code)
Is it possible for currently logged user request a status for specified step
Parameters:
  stepId - - step id to check true if it is possible to request status
throws:
  EmForgeException -



requestStatus
Boolean requestStatus(long stepId, String request) throws EmForgeException(Code)
Request status for specified step
Parameters:
  stepId - - step to request
Parameters:
  request - - request message
throws:
  EmForgeException -



saveTask
Boolean saveTask(TaskTO task, String comment) throws EmForgeException(Code)
Save task
Parameters:
  task - - task to be saved with all required variables set
Parameters:
  comment - - comment related to changes - true if saving success
throws:
  EmForgeException -



startSubTask
TaskTO startSubTask(long parentStepId, StepTO startStep, String transitionName, String tempPageName) throws EmForgeException(Code)
Create subtask for specified step
Parameters:
  parentStepId - - step used as parent step for new task
Parameters:
  startStep - - starting information for subtask
Parameters:
  transitionName - - transition should be used for finishing start task
Parameters:
  tempPageName - - temprorary page name, used for storing description and attachments
throws:
  EmForgeException -



startTask
TaskTO startTask(StepTO startStep, String transitionName, String tempPageName) throws EmForgeException(Code)
Starts new task
Parameters:
  startStep - - information about started task like: priority, variable values, required by start task, dueDate and so on
Parameters:
  transitionName - - name of transition, should be used for completing start-task
Parameters:
  tempPageName - - in case then description and attachments was specified for task,they were stored in temporare Wiki-Page. this param contains name of this pageMay be empty created task



stopTask
Boolean stopTask(long taskId, String comment) throws EmForgeException(Code)
Stop Specified Task
Parameters:
  taskId - - id of task we need to stop
Parameters:
  comment - - comment specified why task is stopped (may be empty) true is task stopped, othervise false



writeWorkflowImageTable
String writeWorkflowImageTable(WorkflowTO i_workflow, TaskTO i_task, StepTO i_step) throws EmForgeException(Code)
Very specific method This code got from jBPM and used for image generation It should be used onli inside ProcessImageComponent
Parameters:
  writer -
Parameters:
  i_workflow -
Parameters:
  i_task -
Parameters:
  i_step -
throws:
  DocumentException -
throws:
  IOException -



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.