Missing K2 serial number

Last post 02-28-2008, 1:15 by geek. 3 replies.
Sort Posts: Previous Next
  •  02-13-2008, 8:15 21835

    • geek is not online. Last active: 04-08-2008, 9:09 geek
    • Top 50 Contributor
    • Joined on 06-10-2007
    • Jiddah, Saudi Arabia
    • Posts 71
    • Points 246

    Missing K2 serial number

    Hi,

    I'm having this message when I need to start the form initiation: Missing K2 serial number

    I Still don't get it, how can I create the first form to be submitted with the creation of the work item serial number. Do I need to create new instance from the K2BP workspace each time, and then start the process from the work items.

     

    Regards,

    Saleh 

    Filed under: , ,
  •  02-13-2008, 8:57 21836 in reply to 21835

    Re: Missing K2 serial number

    Saleh,

    Are you asking how to start a workflow using the aspx controls for blackpearl project in blackmail?  Sorry, I didn't include that feature in the project.  Right now it can only be used in client events.  That should be a relatively easy feature to add, but I just haven't had time.  Here is some sample code you could use to start a workflow:

      SourceCode.Workflow.Client.Connection  conn = null;

            try
            {
                conn = new SourceCode.Workflow.Client.Connection();
                conn.Open("blackpearl"); //get from web.config

                SourceCode.Workflow.Client.ProcessInstance pi = conn.CreateProcessInstance("HardwareApprovalProc\\Hardware Approval");  //web.config

                pi.DataFields["somefield"].Value = "some value";

                conn.StartProcessInstance(pi);

            }
            catch (Exception)
            {

                throw;
            }
            finally
            {
                if (conn != null) conn.Close();
            }


    The statements and opinions made in my postings are my own, and do not reflect the opinions of SourceCode Technology Holdings, Inc. or its subsidiaries. All information is provided as is with no warranties, express or implied, and grants no rights or licenses.
  •  02-27-2008, 5:03 PM 22160 in reply to 21836

    Re: Missing K2 serial number

    I am also having this problem merely running the downloaded source code for this project. It looks like it's looking for a serial number in the URL of the when the project is run, but no serial number is supplied. What number should be put in there?

     

    Thanks,

    Kim 

  •  02-28-2008, 1:15 22169 in reply to 22160

    • geek is not online. Last active: 04-08-2008, 9:09 geek
    • Top 50 Contributor
    • Joined on 06-10-2007
    • Jiddah, Saudi Arabia
    • Posts 71
    • Points 246

    Re: Missing K2 serial number

    The serial number will be generated by K2, it means that the first page must be hardcoded to initiate a new instance of the process. Afterwards, the worklist item should redirect the user to a valid link that has the correct serial number for that work item (http://WorkspaceServer/ASPPage.aspx?SN=XX_XXX).

     

    -Saleh 

View as RSS news feed in XML