osworkflow / docs / Migrating_from_version_2_5.html

1
2
3
4
<html><head><title>OSWorkflow Migrating from version 2.5</title></head><body>
<ul class="star">
<li>Back to <a href="Documentation.html">Documentation</a></li>
</ul><p class="paragraph"></p>In order to migrate existing OSWorkflow 2.5 applications to OSWorkflow 2.6, the <b class="bold">WF_ENTRY</b> table must be modified. The <b class="bold">INITIALIZED</b> column type has changed from a boolean to an int. In some databases there is no difference between a boolean and an int, so no type change is necessary. In all cases, the column name must be changed to <b class="bold">STATE</b>.<p class="paragraph"></p>If the column type needs to be changed, then the best approach is to create a new <b class="bold">STATE</b> column, and populate it with the values from the old <b class="bold">INITIALIZED</b> column. Old values of 'false' map to a value to 0 in the new column, and values of 'true' map to 1 in the new column. Once this new column has been successfully populated, the <b class="bold">INITIALIZED</b> column can be deleted.<p class="paragraph"></p>The InternalWorkflowException and WorkflowException classes now wrap an Throwable, instead of an Exception. Recompilation is required.<p class="paragraph"></p>The <b class="bold">doAction</b> method in Workflow can now through a new runtime exception, <b class="bold">InvalidActionException</b>. This exception is thrown if the passed in action is invalid for the workflow.<p class="paragraph"></p>Previously when an error was encountered in a bsh script, the bsh exception was wrapped in a <b class="bold">WorkflowException</b> and thrown. This behaviour is now modified so that the <b class="bold">WorkflowException</b> instead wraps the underlying cause of the error in the bsh script.<p class="paragraph"></p>Due to popular demand, all the read methods in <b class="bold">Workflow</b> now no longer throw exceptions. Instead an appropriate 'blank' value is returned. The exception is now just logged, rather than propagated. Methods which make changes in the store still throw exceptions back up, if an error occured.</body></html>
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.