[JIRA-Opensymphony] Created: (WF-195) Steps should not have a different id when moved to history

[email protected]
Newsgroups gmane.comp.java.open-symphony.devel
Message-ID <[email protected]>
Message:

  A new issue has been created in JIRA.

---------------------------------------------------------------------
View the issue:

  http://jira.opensymphony.com/secure/ViewIssue.jspa?key=WF-195


Here is an overview of the issue:
---------------------------------------------------------------------
        Key: WF-195
    Summary: Steps should not have a different id when moved to history
       Type: Bug

     Status: Assigned
   Priority: Major

    Project: OSWorkflow
 Components: 
             Core
   Versions:
             2.5

   Assignee: Patrick Lightbody
   Reporter: Peter Mayne

    Created: Tue, 12 Aug 2003 9:39 PM
    Updated: Tue, 12 Aug 2003 9:39 PM

Description:
The following happens when using the Hibernate store. 

A new workflow step is created with instance id (say) 10. 

doAction() is called. The workflow step with instance id 10 is removed from the current step table and added to the history step with id (say) 11. The step should have the same id in the history table as it had in the current table.

The final try block in HibernateWorkflowStore.moveToHistory should contain a save() with an explicit id:

        try
        {
            // PJDM create new history step with the same id.
            //
            session.save(hStep, new Long(hStep.getId()));
            session.delete(step);
            
            session.save(entry);
            tx.commit();
        }
        catch (HibernateException he)
        {
            log.error("Saving workflow entry " + entry.getId(), he);
            throw new StoreException("Saving workflow entry " + entry.getId(), he);
        }

Note that this also deletes the step from the current table, which is currently not being done.


---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://jira.opensymphony.com/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira



-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.