Latest developer linksBookmark and Share
 
HomeThis WeekTop MonthTop AlltimeSearchRegisterFAQ
  
 
Submit Your Link
Please login to submit your Link
 

initiate workflow programmatically,

Posted: Apr/20/2010   By: nikhil   Points:15   Category: .NET  - ADO.Net    Views:244   Vote Up (0)   Vote Down (0)    
Hi,

I am using wss3.0 and Moss 2007.

I have created a custom workflow in .net 3.0 and able to deploy it on WSS3.0.
Also, I am able to start the workflow programmatically using webservice on a list item. But i am not able to find get the event which should be called when workflow gets "completed".

As of now i have attached a receiver to historylist of workflow for checking status of workflow.
But i want to know some other method by which i can do some processing when workflow gets completed.

Please let me know if i am missing some thing or is thr any other way to attach logic once worklfow gets completed.

Thanks,
Abhi




View Complete Post


Comments:
Be the first to comment this post.
 
Post Comment
Please login to post your comment
More Related Resources

Video: Microsoft Visio 2010 and Microsoft SharePoint Designer 2010 Workflow

  
Learn the specific roles Visio 2010 and SharePoint Designer 2010 play in the development process and how these tools can be used in concert to create a workflow. (Length: 13:22)

Video: Microsoft Office 2010 Client Workflow: Why Do We Need Workflow?

  
What are workflows and why do we need them? This video provides a foundational understanding for workflows and then discusses workflows in relation to SharePoint objects, List Items, Document Libraries, Document Sets, and Sites. (Length: 12:05)

Video: Office Client Workflow: Visual Studio 2010 SharePoint Workflow

  
Learn how project templates for SharePoint 2010 in Visual Studio 2010 allow developers to build sequential and state machine workflows for SharePoint and import reusable workflows created in SharePoint Designer. (Length: 10:36)

Video: What's New in SharePoint 2010 Workflow

  
Prior to SharePoint 2010, workflows had to be associated with a list. This meant that if you found a problem that would be well suited to using workflow that wasn't list or document related, you would have to find some way to associate that workflow with a list. This often led to "dummy" list items only created to be a vehicle for a workflow. (Length: 13:50)

Video: Creating Workflow Forms in SharePoint 2010

  
This video demonstrates how to add, design, and develop workflow initiation forms for SharePoint 2010. (Length: 3:58)

SPFileCollection.Add() and Sharepoint Designer workflow "Failed on Start"

  

Does anyone know why I would be getting an error message when trying to auto start a workflow on creation of a item on a Document Library.

 

I am uploading the document using the SPFileCollection.Add() method.  The file gets uploaded but the workflow "Fails on Start (retrying)". 

 

When I manually upload a document using the sharepoint IE interface, the workflow works properly.

 

Thanks!

Erik Miller


How to checkin a document programmatically using the sharepoint client API

  

I have a small HTML:

<HTML>
<HEAD>

<SCRIPT language="javascript">
function DoCheckinDocument () {
 shPointObj = new ActiveXObject("SharePoint.OpenDocuments.3");
 if( shPointObj ) {
    chkinres = shPointObj.CheckinDocument("http://test-x64/Docs/Documents/Reports/Pablo/z.txt",0,"Done in JS");
    alert('After checkin!');
 }
}
</SCRIPT>

<SCRIPT language="javascript">
function DoEditDocument () {
 shPointObj = new ActiveXObject("SharePoint.OpenDocuments.3");
 if( shPointObj ) {
    editres = shPointObj.EditDocument("http://test-x64/Docs/Documents/Reports/Pablo/z.txt");
    alert('After edit!');
 }
}
</SCRIPT>

</HEAD>

<BODY>
<FORM>
<INPUT TYPE="BUTTON" OnClick="javascript:DoCheckinDocument();" VALUE="Checkin document"><br>
<INPUT TYPE="BUTTON" OnClick="javascript:DoEditDocument();" VALUE="Edit document">
</FORM>

</BODY>
</HTML>

 

As you can see, this html has two buttons. One to edit a document and the other to checkin a document (hardcoded document). When I edit a document it works just fine... but when I try to do the checkin I get this error:

 The file could not be checked in. It may have already been checked in by another user.

And the document in my local draft is then removed... but the file is not checked in!

Searching in internet there is almost no example of how to use this API...

I have installed Office 2007.

Thanks in advance


Unified Communications Managed API 2.0 Workflow SDK Documentation

  
Use this API to create and deploy communication workflow applications that are developed with the Microsoft .NET Framework-supported C# language.
 
Categories:
.NET
Java
PHP
C/C++/VC++
HTML/XML
SAP
MainFrames
Data Warehousing
Testing
MySQL
SQL Server
Oracle
Javascript/VB Script
Others
Login
 
 
 
 
 Forgot password
 Contact Us   Terms Of use   Share your knowledge