/jbpm-flow/src/main/java/org/jbpm/workflow/core/WorkflowProcess.java

https://github.com/chrcz/jbpm · Java · 93 lines · 15 code · 14 blank · 64 comment · 0 complexity · c0862a9d9c17c079f56313fc7b808a80 MD5 · raw file

  1. /**
  2. * Copyright 2010 JBoss Inc
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. package org.jbpm.workflow.core;
  17. import java.util.List;
  18. import java.util.Map;
  19. import org.jbpm.process.core.Process;
  20. /**
  21. * Represents a RuleFlow process.
  22. *
  23. * @author <a href="mailto:kris_verlaenen@hotmail.com">Kris Verlaenen</a>
  24. */
  25. public interface WorkflowProcess extends org.drools.definition.process.WorkflowProcess, Process, NodeContainer {
  26. /**
  27. * Returns the imports of this RuleFlow process.
  28. * They are defined as a List of fully qualified class names.
  29. *
  30. * @return the imports of this RuleFlow process
  31. */
  32. List<String> getImports();
  33. /**
  34. * Returns the function imports of this RuleFlow process.
  35. * They are defined as a List of fully qualified class names.
  36. *
  37. * @return the function imports of this RuleFlow process
  38. */
  39. List<String> getFunctionImports();
  40. /**
  41. * Sets the imports of this RuleFlow process
  42. *
  43. * @param imports the imports as a List of fully qualified class names
  44. */
  45. void setImports(List<String> imports);
  46. /**
  47. * Sets the imports of this RuleFlow process
  48. *
  49. * @param imports the imports as a List of fully qualified class names
  50. */
  51. void setFunctionImports(List<String> functionImports);
  52. /**
  53. * Returns the globals of this RuleFlow process.
  54. * They are defined as a Map with the name as key and the type as value.
  55. *
  56. * @return the imports of this RuleFlow process
  57. */
  58. Map<String, String> getGlobals();
  59. /**
  60. * Sets the imports of this RuleFlow process
  61. *
  62. * @param imports the globals as a Map with the name as key and the type as value
  63. */
  64. void setGlobals(Map<String, String> globals);
  65. /**
  66. * Returns the names of the globals used in this RuleFlow process
  67. *
  68. * @return the names of the globals of this RuleFlow process
  69. */
  70. String[] getGlobalNames();
  71. /**
  72. * Returns whether this process will automatically complete if it
  73. * contains no active node instances anymore
  74. *
  75. * @return the names of the globals of this RuleFlow process
  76. */
  77. boolean isAutoComplete();
  78. boolean isDynamic();
  79. }