Source for file Process.php

Documentation is available at Process.php

  1. <?php
  2. /**
  3. * A Process is an organized set of Steps. There is an initial Step. There
  4. * can be other Steps in the Process and they have a designated predecessor
  5. * Step.
  6. *
  7. * <p>
  8. * OSID Version: 2.0
  9. * </p>
  10. *
  11. * <p>
  12. * Licensed under the {@link org.osid.SidImplementationLicenseMIT MIT}
  13. * O.K.I&#46; OSID Definition License}.
  14. * </p>
  15. *
  16. * @package org.osid.workflow
  17. */
  18. class Process
  19. {
  20. /**
  21. * Update the DisplayName of this Process.
  22. *
  23. * @param string $displayName
  24. *
  25. * @throws object WorkflowException An exception with one of the
  26. * following messages defined in
  27. * org.osid.workflow.WorkflowException may be thrown: {@link }
  28. * org.osid.workflow.WorkflowException#OPERATION_FAILED
  29. * OPERATION_FAILED}, {@link }
  30. * org.osid.workflow.WorkflowException#PERMISSION_DENIED
  31. * PERMISSION_DENIED}, {@link }
  32. * org.osid.workflow.WorkflowException#CONFIGURATION_ERROR
  33. * CONFIGURATION_ERROR}, {@link }
  34. * org.osid.workflow.WorkflowException#UNIMPLEMENTED
  35. * UNIMPLEMENTED}, {@link }
  36. * org.osid.workflow.WorkflowException#NULL_ARGUMENT
  37. * NULL_ARGUMENT}
  38. *
  39. * @access public
  40. */
  41. function updateDisplayName ( $displayName ) {
  42. die ("Method <b>".__FUNCTION__."()</b> declared in interface<b> ".__CLASS__."</b> has not been overloaded in a child class.");
  43. }
  44.  
  45. /**
  46. * Get the description of this Process.
  47. *
  48. * @param string $description
  49. *
  50. * @throws object WorkflowException An exception with one of the
  51. * following messages defined in
  52. * org.osid.workflow.WorkflowException may be thrown: {@link }
  53. * org.osid.workflow.WorkflowException#OPERATION_FAILED
  54. * OPERATION_FAILED}, {@link }
  55. * org.osid.workflow.WorkflowException#PERMISSION_DENIED
  56. * PERMISSION_DENIED}, {@link }
  57. * org.osid.workflow.WorkflowException#CONFIGURATION_ERROR
  58. * CONFIGURATION_ERROR}, {@link }
  59. * org.osid.workflow.WorkflowException#UNIMPLEMENTED
  60. * UNIMPLEMENTED}, {@link }
  61. * org.osid.workflow.WorkflowException#NULL_ARGUMENT
  62. * NULL_ARGUMENT}
  63. *
  64. * @access public
  65. */
  66. function updateDescription ( $description ) {
  67. die ("Method <b>".__FUNCTION__."()</b> declared in interface<b> ".__CLASS__."</b> has not been overloaded in a child class.");
  68. }
  69.  
  70. /**
  71. * Updates the state of this Process: true if this Process is enabled;
  72. * false otherwise.
  73. *
  74. * @param boolean $enabled
  75. *
  76. * @throws object WorkflowException An exception with one of the
  77. * following messages defined in
  78. * org.osid.workflow.WorkflowException may be thrown: {@link }
  79. * org.osid.workflow.WorkflowException#OPERATION_FAILED
  80. * OPERATION_FAILED}, {@link }
  81. * org.osid.workflow.WorkflowException#PERMISSION_DENIED
  82. * PERMISSION_DENIED}, {@link }
  83. * org.osid.workflow.WorkflowException#CONFIGURATION_ERROR
  84. * CONFIGURATION_ERROR}, {@link }
  85. * org.osid.workflow.WorkflowException#UNIMPLEMENTED
  86. * UNIMPLEMENTED}
  87. *
  88. * @access public
  89. */
  90. function updateEnabled ( $enabled ) {
  91. die ("Method <b>".__FUNCTION__."()</b> declared in interface<b> ".__CLASS__."</b> has not been overloaded in a child class.");
  92. }
  93.  
  94. /**
  95. * Get the unique Id for this Process. The unique Id is set when the
  96. * Process is created by a Process.
  97. *
  98. * @return object Id
  99. *
  100. * @throws object WorkflowException An exception with one of the
  101. * following messages defined in
  102. * org.osid.workflow.WorkflowException may be thrown: {@link }
  103. * org.osid.workflow.WorkflowException#OPERATION_FAILED
  104. * OPERATION_FAILED}, {@link }
  105. * org.osid.workflow.WorkflowException#PERMISSION_DENIED
  106. * PERMISSION_DENIED}, {@link }
  107. * org.osid.workflow.WorkflowException#CONFIGURATION_ERROR
  108. * CONFIGURATION_ERROR}, {@link }
  109. * org.osid.workflow.WorkflowException#UNIMPLEMENTED
  110. * UNIMPLEMENTED}
  111. *
  112. * @access public
  113. */
  114. function getId () {
  115. die ("Method <b>".__FUNCTION__."()</b> declared in interface<b> ".__CLASS__."</b> has not been overloaded in a child class.");
  116. }
  117.  
  118. /**
  119. * Get the description of this Process.
  120. *
  121. * @return string
  122. *
  123. * @throws object WorkflowException An exception with one of the
  124. * following messages defined in
  125. * org.osid.workflow.WorkflowException may be thrown: {@link }
  126. * org.osid.workflow.WorkflowException#OPERATION_FAILED
  127. * OPERATION_FAILED}, {@link }
  128. * org.osid.workflow.WorkflowException#PERMISSION_DENIED
  129. * PERMISSION_DENIED}, {@link }
  130. * org.osid.workflow.WorkflowException#CONFIGURATION_ERROR
  131. * CONFIGURATION_ERROR}, {@link }
  132. * org.osid.workflow.WorkflowException#UNIMPLEMENTED
  133. * UNIMPLEMENTED}
  134. *
  135. * @access public
  136. */
  137. function getDescription () {
  138. die ("Method <b>".__FUNCTION__."()</b> declared in interface<b> ".__CLASS__."</b> has not been overloaded in a child class.");
  139. }
  140.  
  141. /**
  142. * Get the Type of this Process.
  143. *
  144. * @return object Type
  145. *
  146. * @throws object WorkflowException An exception with one of the
  147. * following messages defined in
  148. * org.osid.workflow.WorkflowException may be thrown: {@link }
  149. * org.osid.workflow.WorkflowException#OPERATION_FAILED
  150. * OPERATION_FAILED}, {@link }
  151. * org.osid.workflow.WorkflowException#PERMISSION_DENIED
  152. * PERMISSION_DENIED}, {@link }
  153. * org.osid.workflow.WorkflowException#CONFIGURATION_ERROR
  154. * CONFIGURATION_ERROR}, {@link }
  155. * org.osid.workflow.WorkflowException#UNIMPLEMENTED
  156. * UNIMPLEMENTED}
  157. *
  158. * @access public
  159. */
  160. function getType () {
  161. die ("Method <b>".__FUNCTION__."()</b> declared in interface<b> ".__CLASS__."</b> has not been overloaded in a child class.");
  162. }
  163.  
  164. /**
  165. * Returns true if this Process is enabled; false otherwise.
  166. *
  167. * @return boolean
  168. *
  169. * @throws object WorkflowException An exception with one of the
  170. * following messages defined in
  171. * org.osid.workflow.WorkflowException may be thrown: {@link }
  172. * org.osid.workflow.WorkflowException#OPERATION_FAILED
  173. * OPERATION_FAILED}, {@link }
  174. * org.osid.workflow.WorkflowException#PERMISSION_DENIED
  175. * PERMISSION_DENIED}, {@link }
  176. * org.osid.workflow.WorkflowException#CONFIGURATION_ERROR
  177. * CONFIGURATION_ERROR}, {@link }
  178. * org.osid.workflow.WorkflowException#UNIMPLEMENTED
  179. * UNIMPLEMENTED}
  180. *
  181. * @access public
  182. */
  183. function isEnabled () {
  184. die ("Method <b>".__FUNCTION__."()</b> declared in interface<b> ".__CLASS__."</b> has not been overloaded in a child class.");
  185. }
  186.  
  187. /**
  188. * Get the DisplayName of this Process.
  189. *
  190. * @return string
  191. *
  192. * @throws object WorkflowException An exception with one of the
  193. * following messages defined in
  194. * org.osid.workflow.WorkflowException may be thrown: {@link }
  195. * org.osid.workflow.WorkflowException#OPERATION_FAILED
  196. * OPERATION_FAILED}, {@link }
  197. * org.osid.workflow.WorkflowException#PERMISSION_DENIED
  198. * PERMISSION_DENIED}, {@link }
  199. * org.osid.workflow.WorkflowException#CONFIGURATION_ERROR
  200. * CONFIGURATION_ERROR}, {@link }
  201. * org.osid.workflow.WorkflowException#UNIMPLEMENTED
  202. * UNIMPLEMENTED}
  203. *
  204. * @access public
  205. */
  206. function getDisplayName () {
  207. die ("Method <b>".__FUNCTION__."()</b> declared in interface<b> ".__CLASS__."</b> has not been overloaded in a child class.");
  208. }
  209.  
  210. /**
  211. * Create an Inital Step for the specified role in this Process. There
  212. * must be one and only one Initial Step.
  213. *
  214. * @param string $displayName
  215. * @param string $description
  216. * @param object Id $roleId
  217. *
  218. * @return object Step
  219. *
  220. * @throws object WorkflowException An exception with one of the
  221. * following messages defined in
  222. * org.osid.workflow.WorkflowException may be thrown: {@link }
  223. * org.osid.workflow.WorkflowException#OPERATION_FAILED
  224. * OPERATION_FAILED}, {@link }
  225. * org.osid.workflow.WorkflowException#PERMISSION_DENIED
  226. * PERMISSION_DENIED}, {@link }
  227. * org.osid.workflow.WorkflowException#CONFIGURATION_ERROR
  228. * CONFIGURATION_ERROR}, {@link }
  229. * org.osid.workflow.WorkflowException#UNIMPLEMENTED
  230. * UNIMPLEMENTED}, {@link }
  231. * org.osid.workflow.WorkflowException#NULL_ARGUMENT
  232. * NULL_ARGUMENT}, {@link }
  233. * org.osid.workflow.WorkflowException#UNKNOWN_ID UNKNOWN_ID},
  234. * {@link org.osid.workflow.WorkflowException#INVALID_NETWORK}
  235. * INVALID_NETWORK}
  236. *
  237. * @access public
  238. */
  239. function createInitialStep ( $displayName, $description, $roleId ) {
  240. die ("Method <b>".__FUNCTION__."()</b> declared in interface<b> ".__CLASS__."</b> has not been overloaded in a child class.");
  241. }
  242.  
  243. /**
  244. * Create a Step with the specified Predecessor Step, for the specified
  245. * role in this Process. A Step cannot be its own immediate predecessor,
  246. * but looping is permitted.
  247. *
  248. * @param object Id $predecessorStepId
  249. * @param string $displayName
  250. * @param string $description
  251. * @param object Id $roleId
  252. *
  253. * @return object Step
  254. *
  255. * @throws object WorkflowException An exception with one of the
  256. * following messages defined in
  257. * org.osid.workflow.WorkflowException may be thrown: {@link }
  258. * org.osid.workflow.WorkflowException#OPERATION_FAILED
  259. * OPERATION_FAILED}, {@link }
  260. * org.osid.workflow.WorkflowException#PERMISSION_DENIED
  261. * PERMISSION_DENIED}, {@link }
  262. * org.osid.workflow.WorkflowException#CONFIGURATION_ERROR
  263. * CONFIGURATION_ERROR}, {@link }
  264. * org.osid.workflow.WorkflowException#UNIMPLEMENTED
  265. * UNIMPLEMENTED}, {@link }
  266. * org.osid.workflow.WorkflowException#NULL_ARGUMENT
  267. * NULL_ARGUMENT}, {@link }
  268. * org.osid.workflow.WorkflowException#UNKNOWN_ID UNKNOWN_ID},
  269. * {@link org.osid.workflow.WorkflowException#INVALID_NETWORK}
  270. * INVALID_NETWORK}
  271. *
  272. * @access public
  273. */
  274. function createStep ( $predecessorStepId, $displayName, $description, $roleId ) {
  275. die ("Method <b>".__FUNCTION__."()</b> declared in interface<b> ".__CLASS__."</b> has not been overloaded in a child class.");
  276. }
  277.  
  278. /**
  279. * Get a Step by unique Id.
  280. *
  281. * @param object Id $stepId
  282. *
  283. * @return object Step
  284. *
  285. * @throws object WorkflowException An exception with one of the
  286. * following messages defined in
  287. * org.osid.workflow.WorkflowException may be thrown: {@link }
  288. * org.osid.workflow.WorkflowException#OPERATION_FAILED
  289. * OPERATION_FAILED}, {@link }
  290. * org.osid.workflow.WorkflowException#PERMISSION_DENIED
  291. * PERMISSION_DENIED}, {@link }
  292. * org.osid.workflow.WorkflowException#CONFIGURATION_ERROR
  293. * CONFIGURATION_ERROR}, {@link }
  294. * org.osid.workflow.WorkflowException#UNIMPLEMENTED
  295. * UNIMPLEMENTED}, {@link }
  296. * org.osid.workflow.WorkflowException#NULL_ARGUMENT
  297. * NULL_ARGUMENT}, {@link }
  298. * org.osid.workflow.WorkflowException#UNKNOWN_ID UNKNOWN_ID}
  299. *
  300. * @access public
  301. */
  302. function getStep ( $stepId ) {
  303. die ("Method <b>".__FUNCTION__."()</b> declared in interface<b> ".__CLASS__."</b> has not been overloaded in a child class.");
  304. }
  305.  
  306. /**
  307. * Get all the Steps in this Process.
  308. *
  309. * @return object StepIterator
  310. *
  311. * @throws object WorkflowException An exception with one of the
  312. * following messages defined in
  313. * org.osid.workflow.WorkflowException may be thrown: {@link }
  314. * org.osid.workflow.WorkflowException#OPERATION_FAILED
  315. * OPERATION_FAILED}, {@link }
  316. * org.osid.workflow.WorkflowException#PERMISSION_DENIED
  317. * PERMISSION_DENIED}, {@link }
  318. * org.osid.workflow.WorkflowException#CONFIGURATION_ERROR
  319. * CONFIGURATION_ERROR}, {@link }
  320. * org.osid.workflow.WorkflowException#UNIMPLEMENTED
  321. * UNIMPLEMENTED}
  322. *
  323. * @access public
  324. */
  325. function getSteps () {
  326. die ("Method <b>".__FUNCTION__."()</b> declared in interface<b> ".__CLASS__."</b> has not been overloaded in a child class.");
  327. }
  328.  
  329. /**
  330. * Delete a Step by unique Id.
  331. *
  332. * @param object Id $stepId
  333. *
  334. * @throws object WorkflowException An exception with one of the
  335. * following messages defined in
  336. * org.osid.workflow.WorkflowException may be thrown: {@link }
  337. * org.osid.workflow.WorkflowException#OPERATION_FAILED
  338. * OPERATION_FAILED}, {@link }
  339. * org.osid.workflow.WorkflowException#PERMISSION_DENIED
  340. * PERMISSION_DENIED}, {@link }
  341. * org.osid.workflow.WorkflowException#CONFIGURATION_ERROR
  342. * CONFIGURATION_ERROR}, {@link }
  343. * org.osid.workflow.WorkflowException#UNIMPLEMENTED
  344. * UNIMPLEMENTED}, {@link }
  345. * org.osid.workflow.WorkflowException#NULL_ARGUMENT
  346. * NULL_ARGUMENT}, {@link }
  347. * org.osid.workflow.WorkflowException#UNKNOWN_ID UNKNOWN_ID}
  348. *
  349. * @access public
  350. */
  351. function deleteStep ( $stepId ) {
  352. die ("Method <b>".__FUNCTION__."()</b> declared in interface<b> ".__CLASS__."</b> has not been overloaded in a child class.");
  353. }
  354.  
  355. /**
  356. * Create Work. Work is not deleted. When the Terminal Step is reached,
  357. * Work is completed.
  358. *
  359. * @param string $displayName
  360. * @param string $description
  361. * @param object Id $qualifierId
  362. *
  363. * @return object Work
  364. *
  365. * @throws object WorkflowException An exception with one of the
  366. * following messages defined in
  367. * org.osid.workflow.WorkflowException may be thrown: {@link }
  368. * org.osid.workflow.WorkflowException#OPERATION_FAILED
  369. * OPERATION_FAILED}, {@link }
  370. * org.osid.workflow.WorkflowException#PERMISSION_DENIED
  371. * PERMISSION_DENIED}, {@link }
  372. * org.osid.workflow.WorkflowException#CONFIGURATION_ERROR
  373. * CONFIGURATION_ERROR}, {@link }
  374. * org.osid.workflow.WorkflowException#UNIMPLEMENTED
  375. * UNIMPLEMENTED}, {@link }
  376. * org.osid.workflow.WorkflowException#NULL_ARGUMENT
  377. * NULL_ARGUMENT}, {@link }
  378. * org.osid.workflow.WorkflowException#UNKNOWN_ID UNKNOWN_ID}
  379. *
  380. * @access public
  381. */
  382. function createWork ( $displayName, $description, $qualifierId ) {
  383. die ("Method <b>".__FUNCTION__."()</b> declared in interface<b> ".__CLASS__."</b> has not been overloaded in a child class.");
  384. }
  385.  
  386. /**
  387. * Delete Work. Work is not deleted. When the Terminal Step is reached,
  388. * Work is completed.
  389. *
  390. * @param object Id $workId
  391. *
  392. * @throws object WorkflowException An exception with one of the
  393. * following messages defined in
  394. * org.osid.workflow.WorkflowException may be thrown: {@link }
  395. * org.osid.workflow.WorkflowException#OPERATION_FAILED
  396. * OPERATION_FAILED}, {@link }
  397. * org.osid.workflow.WorkflowException#PERMISSION_DENIED
  398. * PERMISSION_DENIED}, {@link }
  399. * org.osid.workflow.WorkflowException#CONFIGURATION_ERROR
  400. * CONFIGURATION_ERROR}, {@link }
  401. * org.osid.workflow.WorkflowException#UNIMPLEMENTED
  402. * UNIMPLEMENTED}, {@link }
  403. * org.osid.workflow.WorkflowException#NULL_ARGUMENT
  404. * NULL_ARGUMENT}, {@link }
  405. * org.osid.workflow.WorkflowException#UNKNOWN_ID UNKNOWN_ID}
  406. *
  407. * @access public
  408. */
  409. function deleteWork ( $workId ) {
  410. die ("Method <b>".__FUNCTION__."()</b> declared in interface<b> ".__CLASS__."</b> has not been overloaded in a child class.");
  411. }
  412.  
  413. /**
  414. * Get Work by unique Id.
  415. *
  416. * @param object Id $workId
  417. *
  418. * @return object Work
  419. *
  420. * @throws object WorkflowException An exception with one of the
  421. * following messages defined in
  422. * org.osid.workflow.WorkflowException may be thrown: {@link }
  423. * org.osid.workflow.WorkflowException#OPERATION_FAILED
  424. * OPERATION_FAILED}, {@link }
  425. * org.osid.workflow.WorkflowException#PERMISSION_DENIED
  426. * PERMISSION_DENIED}, {@link }
  427. * org.osid.workflow.WorkflowException#CONFIGURATION_ERROR
  428. * CONFIGURATION_ERROR}, {@link }
  429. * org.osid.workflow.WorkflowException#UNIMPLEMENTED
  430. * UNIMPLEMENTED}
  431. *
  432. * @access public
  433. */
  434. function getWork ( $workId ) {
  435. die ("Method <b>".__FUNCTION__."()</b> declared in interface<b> ".__CLASS__."</b> has not been overloaded in a child class.");
  436. }
  437.  
  438. /**
  439. * Get all the Work.
  440. *
  441. * @return object WorkIterator
  442. *
  443. * @throws object WorkflowException An exception with one of the
  444. * following messages defined in
  445. * org.osid.workflow.WorkflowException may be thrown: {@link }
  446. * org.osid.workflow.WorkflowException#OPERATION_FAILED
  447. * OPERATION_FAILED}, {@link }
  448. * org.osid.workflow.WorkflowException#PERMISSION_DENIED
  449. * PERMISSION_DENIED}, {@link }
  450. * org.osid.workflow.WorkflowException#CONFIGURATION_ERROR
  451. * CONFIGURATION_ERROR}, {@link }
  452. * org.osid.workflow.WorkflowException#UNIMPLEMENTED
  453. * UNIMPLEMENTED}
  454. *
  455. * @access public
  456. */
  457. function getAllWork () {
  458. die ("Method <b>".__FUNCTION__."()</b> declared in interface<b> ".__CLASS__."</b> has not been overloaded in a child class.");
  459. }
  460.  
  461. /**
  462. * Get all the work available to be acted on by the Owner.
  463. *
  464. * @return object WorkIterator
  465. *
  466. * @throws object WorkflowException An exception with one of the
  467. * following messages defined in
  468. * org.osid.workflow.WorkflowException may be thrown: {@link }
  469. * org.osid.workflow.WorkflowException#OPERATION_FAILED
  470. * OPERATION_FAILED}, {@link }
  471. * org.osid.workflow.WorkflowException#PERMISSION_DENIED
  472. * PERMISSION_DENIED}, {@link }
  473. * org.osid.workflow.WorkflowException#CONFIGURATION_ERROR
  474. * CONFIGURATION_ERROR}, {@link }
  475. * org.osid.workflow.WorkflowException#UNIMPLEMENTED
  476. * UNIMPLEMENTED}
  477. *
  478. * @access public
  479. */
  480. function getAvailableWork () {
  481. die ("Method <b>".__FUNCTION__."()</b> declared in interface<b> ".__CLASS__."</b> has not been overloaded in a child class.");
  482. }
  483.  
  484. /**
  485. * Get all the work available to be acted on by the Owner with this Role
  486. * unique Id.
  487. *
  488. * @param object Id $roleId
  489. *
  490. * @return object WorkIterator
  491. *
  492. * @throws object WorkflowException An exception with one of the
  493. * following messages defined in
  494. * org.osid.workflow.WorkflowException may be thrown: {@link }
  495. * org.osid.workflow.WorkflowException#OPERATION_FAILED
  496. * OPERATION_FAILED}, {@link }
  497. * org.osid.workflow.WorkflowException#PERMISSION_DENIED
  498. * PERMISSION_DENIED}, {@link }
  499. * org.osid.workflow.WorkflowException#CONFIGURATION_ERROR
  500. * CONFIGURATION_ERROR}, {@link }
  501. * org.osid.workflow.WorkflowException#UNIMPLEMENTED
  502. * UNIMPLEMENTED}, {@link }
  503. * org.osid.workflow.WorkflowException#NULL_ARGUMENT
  504. * NULL_ARGUMENT}, {@link }
  505. * org.osid.workflow.WorkflowException#UNKNOWN_ID UNKNOWN_ID}
  506. *
  507. * @access public
  508. */
  509. function getAvailableWorkForRole ( $roleId ) {
  510. die ("Method <b>".__FUNCTION__."()</b> declared in interface<b> ".__CLASS__."</b> has not been overloaded in a child class.");
  511. }
  512.  
  513. /**
  514. * Get all the work available to be acted on by the Owner for this Step.
  515. *
  516. * @param object Id $stepId
  517. *
  518. * @return object WorkIterator
  519. *
  520. * @throws object WorkflowException An exception with one of the
  521. * following messages defined in
  522. * org.osid.workflow.WorkflowException may be thrown: {@link }
  523. * org.osid.workflow.WorkflowException#OPERATION_FAILED
  524. * OPERATION_FAILED}, {@link }
  525. * org.osid.workflow.WorkflowException#PERMISSION_DENIED
  526. * PERMISSION_DENIED}, {@link }
  527. * org.osid.workflow.WorkflowException#CONFIGURATION_ERROR
  528. * CONFIGURATION_ERROR}, {@link }
  529. * org.osid.workflow.WorkflowException#UNIMPLEMENTED
  530. * UNIMPLEMENTED}, {@link }
  531. * org.osid.workflow.WorkflowException#NULL_ARGUMENT
  532. * NULL_ARGUMENT}, {@link }
  533. * org.osid.workflow.WorkflowException#UNKNOWN_ID UNKNOWN_ID}
  534. *
  535. * @access public
  536. */
  537. function getAvailableWorkForStep ( $stepId ) {
  538. die ("Method <b>".__FUNCTION__."()</b> declared in interface<b> ".__CLASS__."</b> has not been overloaded in a child class.");
  539. }
  540.  
  541. /**
  542. * Get all the work unfinished to be acted on by anyone.
  543. *
  544. * @return object WorkIterator
  545. *
  546. * @throws object WorkflowException An exception with one of the
  547. * following messages defined in
  548. * org.osid.workflow.WorkflowException may be thrown: {@link }
  549. * org.osid.workflow.WorkflowException#OPERATION_FAILED
  550. * OPERATION_FAILED}, {@link }
  551. * org.osid.workflow.WorkflowException#PERMISSION_DENIED
  552. * PERMISSION_DENIED}, {@link }
  553. * org.osid.workflow.WorkflowException#CONFIGURATION_ERROR
  554. * CONFIGURATION_ERROR}, {@link }
  555. * org.osid.workflow.WorkflowException#UNIMPLEMENTED
  556. * UNIMPLEMENTED}
  557. *
  558. * @access public
  559. */
  560. function getUnfinishedWork () {
  561. die ("Method <b>".__FUNCTION__."()</b> declared in interface<b> ".__CLASS__."</b> has not been overloaded in a child class.");
  562. }
  563.  
  564. /**
  565. * Get all the work unfinished to be acted on by anyone with this Role
  566. * unique Id.
  567. *
  568. * @param object Id $roleId
  569. *
  570. * @return object WorkIterator
  571. *
  572. * @throws object WorkflowException An exception with one of the
  573. * following messages defined in
  574. * org.osid.workflow.WorkflowException may be thrown: {@link }
  575. * org.osid.workflow.WorkflowException#OPERATION_FAILED
  576. * OPERATION_FAILED}, {@link }
  577. * org.osid.workflow.WorkflowException#PERMISSION_DENIED
  578. * PERMISSION_DENIED}, {@link }
  579. * org.osid.workflow.WorkflowException#CONFIGURATION_ERROR
  580. * CONFIGURATION_ERROR}, {@link }
  581. * org.osid.workflow.WorkflowException#UNIMPLEMENTED
  582. * UNIMPLEMENTED}, {@link }
  583. * org.osid.workflow.WorkflowException#NULL_ARGUMENT
  584. * NULL_ARGUMENT}, {@link }
  585. * org.osid.workflow.WorkflowException#UNKNOWN_ID UNKNOWN_ID}
  586. *
  587. * @access public
  588. */
  589. function getUnfinishedWorkForRole ( $roleId ) {
  590. die ("Method <b>".__FUNCTION__."()</b> declared in interface<b> ".__CLASS__."</b> has not been overloaded in a child class.");
  591. }
  592.  
  593. /**
  594. * Get all the work unfinished to be acted on by anyone for this Step.
  595. *
  596. * @param object Id $stepId
  597. *
  598. * @return object WorkIterator
  599. *
  600. * @throws object WorkflowException An exception with one of the
  601. * following messages defined in
  602. * org.osid.workflow.WorkflowException may be thrown: {@link }
  603. * org.osid.workflow.WorkflowException#OPERATION_FAILED
  604. * OPERATION_FAILED}, {@link }
  605. * org.osid.workflow.WorkflowException#PERMISSION_DENIED
  606. * PERMISSION_DENIED}, {@link }
  607. * org.osid.workflow.WorkflowException#CONFIGURATION_ERROR
  608. * CONFIGURATION_ERROR}, {@link }
  609. * org.osid.workflow.WorkflowException#UNIMPLEMENTED
  610. * UNIMPLEMENTED}, {@link }
  611. * org.osid.workflow.WorkflowException#NULL_ARGUMENT
  612. * NULL_ARGUMENT}, {@link }
  613. * org.osid.workflow.WorkflowException#UNKNOWN_ID UNKNOWN_ID}
  614. *
  615. * @access public
  616. */
  617. function getUnfinishedWorkForStep ( $stepId ) {
  618. die ("Method <b>".__FUNCTION__."()</b> declared in interface<b> ".__CLASS__."</b> has not been overloaded in a child class.");
  619. }
  620.  
  621. /**
  622. * Halt the specified Work.
  623. *
  624. * @param object Id $workId
  625. *
  626. * @throws object WorkflowException An exception with one of the
  627. * following messages defined in
  628. * org.osid.workflow.WorkflowException may be thrown: {@link }
  629. * org.osid.workflow.WorkflowException#OPERATION_FAILED
  630. * OPERATION_FAILED}, {@link }
  631. * org.osid.workflow.WorkflowException#PERMISSION_DENIED
  632. * PERMISSION_DENIED}, {@link }
  633. * org.osid.workflow.WorkflowException#CONFIGURATION_ERROR
  634. * CONFIGURATION_ERROR}, {@link }
  635. * org.osid.workflow.WorkflowException#UNIMPLEMENTED
  636. * UNIMPLEMENTED}, {@link }
  637. * org.osid.workflow.WorkflowException#NULL_ARGUMENT
  638. * NULL_ARGUMENT}, {@link }
  639. * org.osid.workflow.WorkflowException#UNKNOWN_ID UNKNOWN_ID}
  640. *
  641. * @access public
  642. */
  643. function haltWork ( $workId ) {
  644. die ("Method <b>".__FUNCTION__."()</b> declared in interface<b> ".__CLASS__."</b> has not been overloaded in a child class.");
  645. }
  646.  
  647. /**
  648. * Resume the specified halted Work.
  649. *
  650. * @param object Id $workId
  651. *
  652. * @throws object WorkflowException An exception with one of the
  653. * following messages defined in
  654. * org.osid.workflow.WorkflowException may be thrown: {@link }
  655. * org.osid.workflow.WorkflowException#OPERATION_FAILED
  656. * OPERATION_FAILED}, {@link }
  657. * org.osid.workflow.WorkflowException#PERMISSION_DENIED
  658. * PERMISSION_DENIED}, {@link }
  659. * org.osid.workflow.WorkflowException#CONFIGURATION_ERROR
  660. * CONFIGURATION_ERROR}, {@link }
  661. * org.osid.workflow.WorkflowException#UNIMPLEMENTED
  662. * UNIMPLEMENTED}, {@link }
  663. * org.osid.workflow.WorkflowException#NULL_ARGUMENT
  664. * NULL_ARGUMENT}, {@link }
  665. * org.osid.workflow.WorkflowException#UNKNOWN_ID UNKNOWN_ID},
  666. * {@link org.osid.workflow.WorkflowException#NOT_HALTED}
  667. * NOT_HALTED}
  668. *
  669. * @access public
  670. */
  671. function resumeWork ( $workId ) {
  672. die ("Method <b>".__FUNCTION__."()</b> declared in interface<b> ".__CLASS__."</b> has not been overloaded in a child class.");
  673. }
  674. }
  675.  
  676. ?>

Documentation generated on Wed, 19 Sep 2007 10:25:42 -0400 by phpDocumentor 1.3.0RC3