lib/workitem.rb in openwferu-0.9.0 vs lib/workitem.rb in openwferu-0.9.1
- old
+ new
@@ -1,6 +1,7 @@
#
+#--
# Copyright (c) 2005-2006, John Mettraux, OpenWFE.org
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
@@ -25,10 +26,11 @@
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.
+#++
#
# $Id: workitem.rb 3556 2006-11-13 04:15:52Z jmettraux $
#
#
@@ -75,10 +77,12 @@
end
def lastExpressionId= (fei)
@flowExpressionId = fei
end
+
+ alias last_expression_id lastExpressionId
end
class InFlowWorkItem < InFlowItem
attr_accessor :dispatchTime, :filter, :history
@@ -86,20 +90,11 @@
attr_accessor :store
#
# special : added by the ruby lib, not given by the worklist
def dup
- c = InFlowWorkItem.new
- c.lastModified = OpenWFE::copy(@lastModified)
- c.attributes = OpenWFE::copy(@attributes)
- c.flowExpressionId = OpenWFE::copy(@flowExpressionId)
- c.participantName = OpenWFE::copy(@participantName)
- c.dispatchTime = OpenWFE::copy(@dispatchTime)
- c.filter = OpenWFE::copy(@filter)
- c.history = OpenWFE::copy(@history)
- c.store = OpenWFE::copy(@store)
- return c
+ return OpenWFE::dup(self)
end
end
class CancelItem < InFlowItem
end
@@ -124,9 +119,13 @@
:text, \
:wfdName, \
:wfdRevision, \
:wfInstanceId, \
:expressionId
+
+ def dup
+ return OpenWFE::dup(self)
+ end
end
#
# STORES