Starting sharepoint 2007 workflows simultaneously on list items using Timer jobSharepoint workflows does not startStart a workflow on items that already existCopy SharePoint SPListItem while preventing new workflows or modificationsInvoke Workflow through Custom Sequential Workflow in SharePointSPWorkflowActivationProperties.Item is NULL in Simple SharePoint WorkflowWeird Workflow Behavior in Sharepoint 2007Built in Approval workflow not started on item edit eventPopulating lists with the workflow in sharepoint 2007SharePoint 2007 ULS Error System.NullReferenceException on workflow startSharePoint Workflow Timer job issue

How do I delete all blank lines in a buffer?

What are the advantages of simplicial model categories over non-simplicial ones?

Quasinilpotent , non-compact operators

What does "Scientists rise up against statistical significance" mean? (Comment in Nature)

How can "mimic phobia" be cured or prevented?

What happens if you are holding an Iron Flask with a demon inside and walk into an Antimagic Field?

Using substitution ciphers to generate new alphabets in a novel

Keeping a ball lost forever

What if a revenant (monster) gains fire resistance?

Strong empirical falsification of quantum mechanics based on vacuum energy density

What is the evidence for the "tyranny of the majority problem" in a direct democracy context?

How to say when an application is taking the half of your screen on a computer

What should you do when eye contact makes your subordinate uncomfortable?

What is going on with 'gets(stdin)' on the site coderbyte?

Unexpected behavior of the procedure `Area` on the object 'Polygon'

Quoting Keynes in a lecture

How should I respond when I lied about my education and the company finds out through background check?

System.QueryException unexpected token

What exact color does ozone gas have?

Can I say "fingers" when referring to toes?

It grows, but water kills it

Why can Carol Danvers change her suit colours in the first place?

Is there an injective, monotonically increasing, strictly concave function from the reals, to the reals?

Angel of Condemnation - Exile creature with second ability



Starting sharepoint 2007 workflows simultaneously on list items using Timer job


Sharepoint workflows does not startStart a workflow on items that already existCopy SharePoint SPListItem while preventing new workflows or modificationsInvoke Workflow through Custom Sequential Workflow in SharePointSPWorkflowActivationProperties.Item is NULL in Simple SharePoint WorkflowWeird Workflow Behavior in Sharepoint 2007Built in Approval workflow not started on item edit eventPopulating lists with the workflow in sharepoint 2007SharePoint 2007 ULS Error System.NullReferenceException on workflow startSharePoint Workflow Timer job issue













1















I am trying to programmatically start a workflow on multiple items simultaneously of a sharepoint 2007 list, I have found code to start workflow programmatically but the issue is, The workflows don't start simultaneously, that is the workflow starts, completes and then only proceeds to start the next workflow.



foreach (SPListItem item in collListItems)

item["timerJobInitiated"] = "Yes";
item.Update();
SPListItem wrkItem = list.GetItemById(item.ID);
wrkflowmgr.StartWorkflow(wrkItem , wflassociation,wflassociation.AssociationData);










share|improve this question
























  • please provide a bit more information what the timer job does and what "timerJobInitiated" is.

    – Dennis G
    Jul 4 '13 at 11:26











  • The workflow transfer files between locations, The "timerJobintitated field is set to yes, to let the workflow know that the instance is started by timer job and not Manually. Basically i have tried removing the updation of timerjobintitated, even then the issue persists. I am wondering if i should set the status of my workflow in code to be Started at workflowactivated method . Because in my code as of now , i dont change the status / state of workflow and let sharepoint handle it.

    – Godwin
    Jul 4 '13 at 12:05
















1















I am trying to programmatically start a workflow on multiple items simultaneously of a sharepoint 2007 list, I have found code to start workflow programmatically but the issue is, The workflows don't start simultaneously, that is the workflow starts, completes and then only proceeds to start the next workflow.



foreach (SPListItem item in collListItems)

item["timerJobInitiated"] = "Yes";
item.Update();
SPListItem wrkItem = list.GetItemById(item.ID);
wrkflowmgr.StartWorkflow(wrkItem , wflassociation,wflassociation.AssociationData);










share|improve this question
























  • please provide a bit more information what the timer job does and what "timerJobInitiated" is.

    – Dennis G
    Jul 4 '13 at 11:26











  • The workflow transfer files between locations, The "timerJobintitated field is set to yes, to let the workflow know that the instance is started by timer job and not Manually. Basically i have tried removing the updation of timerjobintitated, even then the issue persists. I am wondering if i should set the status of my workflow in code to be Started at workflowactivated method . Because in my code as of now , i dont change the status / state of workflow and let sharepoint handle it.

    – Godwin
    Jul 4 '13 at 12:05














1












1








1








I am trying to programmatically start a workflow on multiple items simultaneously of a sharepoint 2007 list, I have found code to start workflow programmatically but the issue is, The workflows don't start simultaneously, that is the workflow starts, completes and then only proceeds to start the next workflow.



foreach (SPListItem item in collListItems)

item["timerJobInitiated"] = "Yes";
item.Update();
SPListItem wrkItem = list.GetItemById(item.ID);
wrkflowmgr.StartWorkflow(wrkItem , wflassociation,wflassociation.AssociationData);










share|improve this question
















I am trying to programmatically start a workflow on multiple items simultaneously of a sharepoint 2007 list, I have found code to start workflow programmatically but the issue is, The workflows don't start simultaneously, that is the workflow starts, completes and then only proceeds to start the next workflow.



foreach (SPListItem item in collListItems)

item["timerJobInitiated"] = "Yes";
item.Update();
SPListItem wrkItem = list.GetItemById(item.ID);
wrkflowmgr.StartWorkflow(wrkItem , wflassociation,wflassociation.AssociationData);







c# sharepoint workflow






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 7 at 6:13









Cœur

19k9114155




19k9114155










asked Jul 4 '13 at 8:08









GodwinGodwin

450412




450412












  • please provide a bit more information what the timer job does and what "timerJobInitiated" is.

    – Dennis G
    Jul 4 '13 at 11:26











  • The workflow transfer files between locations, The "timerJobintitated field is set to yes, to let the workflow know that the instance is started by timer job and not Manually. Basically i have tried removing the updation of timerjobintitated, even then the issue persists. I am wondering if i should set the status of my workflow in code to be Started at workflowactivated method . Because in my code as of now , i dont change the status / state of workflow and let sharepoint handle it.

    – Godwin
    Jul 4 '13 at 12:05


















  • please provide a bit more information what the timer job does and what "timerJobInitiated" is.

    – Dennis G
    Jul 4 '13 at 11:26











  • The workflow transfer files between locations, The "timerJobintitated field is set to yes, to let the workflow know that the instance is started by timer job and not Manually. Basically i have tried removing the updation of timerjobintitated, even then the issue persists. I am wondering if i should set the status of my workflow in code to be Started at workflowactivated method . Because in my code as of now , i dont change the status / state of workflow and let sharepoint handle it.

    – Godwin
    Jul 4 '13 at 12:05

















please provide a bit more information what the timer job does and what "timerJobInitiated" is.

– Dennis G
Jul 4 '13 at 11:26





please provide a bit more information what the timer job does and what "timerJobInitiated" is.

– Dennis G
Jul 4 '13 at 11:26













The workflow transfer files between locations, The "timerJobintitated field is set to yes, to let the workflow know that the instance is started by timer job and not Manually. Basically i have tried removing the updation of timerjobintitated, even then the issue persists. I am wondering if i should set the status of my workflow in code to be Started at workflowactivated method . Because in my code as of now , i dont change the status / state of workflow and let sharepoint handle it.

– Godwin
Jul 4 '13 at 12:05






The workflow transfer files between locations, The "timerJobintitated field is set to yes, to let the workflow know that the instance is started by timer job and not Manually. Basically i have tried removing the updation of timerjobintitated, even then the issue persists. I am wondering if i should set the status of my workflow in code to be Started at workflowactivated method . Because in my code as of now , i dont change the status / state of workflow and let sharepoint handle it.

– Godwin
Jul 4 '13 at 12:05













2 Answers
2






active

oldest

votes


















1














As you correctly used the StartWorkflow method - there is no simultaneous method to start workflows for multiple list items at the same time. You can only start them one list item after another.



You write now that the workflow completes and only then the next workflow starts - that shouldn't happen. Could you clarify a bit, I would update this answer then?






share|improve this answer























  • The workflow starts and the workflow status of the Item changes to In Progress , however the next item in loop where the workflow should start doesnt change until the In Progress of the previous item changes to Completed. Its a sequential workflow on the list which i am trying to start from Custom Timer Job.

    – Godwin
    Jul 4 '13 at 11:58



















0














I was finally able to achieve this using multitasking, by starting workflows in threads. This provided the desired functionality. I have updated the entire code here as its too long to be posted here.






share|improve this answer




















  • 2





    Please provide a bit more information and maybe a code example on how you solved the issue so that it is helpful to others with the same problem. After that accept your own answer, which is fine.

    – Marcel Gwerder
    Apr 14 '14 at 12:20











  • Could you please elaborate your answer by editing it.

    – Bleeding Fingers
    Apr 14 '14 at 12:35











  • Hyperlinked the "here" text with blog of explanation..

    – Godwin
    Dec 21 '15 at 15:37










Your Answer






StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f17465032%2fstarting-sharepoint-2007-workflows-simultaneously-on-list-items-using-timer-job%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























2 Answers
2






active

oldest

votes








2 Answers
2






active

oldest

votes









active

oldest

votes






active

oldest

votes









1














As you correctly used the StartWorkflow method - there is no simultaneous method to start workflows for multiple list items at the same time. You can only start them one list item after another.



You write now that the workflow completes and only then the next workflow starts - that shouldn't happen. Could you clarify a bit, I would update this answer then?






share|improve this answer























  • The workflow starts and the workflow status of the Item changes to In Progress , however the next item in loop where the workflow should start doesnt change until the In Progress of the previous item changes to Completed. Its a sequential workflow on the list which i am trying to start from Custom Timer Job.

    – Godwin
    Jul 4 '13 at 11:58
















1














As you correctly used the StartWorkflow method - there is no simultaneous method to start workflows for multiple list items at the same time. You can only start them one list item after another.



You write now that the workflow completes and only then the next workflow starts - that shouldn't happen. Could you clarify a bit, I would update this answer then?






share|improve this answer























  • The workflow starts and the workflow status of the Item changes to In Progress , however the next item in loop where the workflow should start doesnt change until the In Progress of the previous item changes to Completed. Its a sequential workflow on the list which i am trying to start from Custom Timer Job.

    – Godwin
    Jul 4 '13 at 11:58














1












1








1







As you correctly used the StartWorkflow method - there is no simultaneous method to start workflows for multiple list items at the same time. You can only start them one list item after another.



You write now that the workflow completes and only then the next workflow starts - that shouldn't happen. Could you clarify a bit, I would update this answer then?






share|improve this answer













As you correctly used the StartWorkflow method - there is no simultaneous method to start workflows for multiple list items at the same time. You can only start them one list item after another.



You write now that the workflow completes and only then the next workflow starts - that shouldn't happen. Could you clarify a bit, I would update this answer then?







share|improve this answer












share|improve this answer



share|improve this answer










answered Jul 4 '13 at 11:25









Dennis GDennis G

17.7k1581124




17.7k1581124












  • The workflow starts and the workflow status of the Item changes to In Progress , however the next item in loop where the workflow should start doesnt change until the In Progress of the previous item changes to Completed. Its a sequential workflow on the list which i am trying to start from Custom Timer Job.

    – Godwin
    Jul 4 '13 at 11:58


















  • The workflow starts and the workflow status of the Item changes to In Progress , however the next item in loop where the workflow should start doesnt change until the In Progress of the previous item changes to Completed. Its a sequential workflow on the list which i am trying to start from Custom Timer Job.

    – Godwin
    Jul 4 '13 at 11:58

















The workflow starts and the workflow status of the Item changes to In Progress , however the next item in loop where the workflow should start doesnt change until the In Progress of the previous item changes to Completed. Its a sequential workflow on the list which i am trying to start from Custom Timer Job.

– Godwin
Jul 4 '13 at 11:58






The workflow starts and the workflow status of the Item changes to In Progress , however the next item in loop where the workflow should start doesnt change until the In Progress of the previous item changes to Completed. Its a sequential workflow on the list which i am trying to start from Custom Timer Job.

– Godwin
Jul 4 '13 at 11:58














0














I was finally able to achieve this using multitasking, by starting workflows in threads. This provided the desired functionality. I have updated the entire code here as its too long to be posted here.






share|improve this answer




















  • 2





    Please provide a bit more information and maybe a code example on how you solved the issue so that it is helpful to others with the same problem. After that accept your own answer, which is fine.

    – Marcel Gwerder
    Apr 14 '14 at 12:20











  • Could you please elaborate your answer by editing it.

    – Bleeding Fingers
    Apr 14 '14 at 12:35











  • Hyperlinked the "here" text with blog of explanation..

    – Godwin
    Dec 21 '15 at 15:37















0














I was finally able to achieve this using multitasking, by starting workflows in threads. This provided the desired functionality. I have updated the entire code here as its too long to be posted here.






share|improve this answer




















  • 2





    Please provide a bit more information and maybe a code example on how you solved the issue so that it is helpful to others with the same problem. After that accept your own answer, which is fine.

    – Marcel Gwerder
    Apr 14 '14 at 12:20











  • Could you please elaborate your answer by editing it.

    – Bleeding Fingers
    Apr 14 '14 at 12:35











  • Hyperlinked the "here" text with blog of explanation..

    – Godwin
    Dec 21 '15 at 15:37













0












0








0







I was finally able to achieve this using multitasking, by starting workflows in threads. This provided the desired functionality. I have updated the entire code here as its too long to be posted here.






share|improve this answer















I was finally able to achieve this using multitasking, by starting workflows in threads. This provided the desired functionality. I have updated the entire code here as its too long to be posted here.







share|improve this answer














share|improve this answer



share|improve this answer








edited Aug 5 '14 at 15:48

























answered Apr 14 '14 at 11:32









GodwinGodwin

450412




450412







  • 2





    Please provide a bit more information and maybe a code example on how you solved the issue so that it is helpful to others with the same problem. After that accept your own answer, which is fine.

    – Marcel Gwerder
    Apr 14 '14 at 12:20











  • Could you please elaborate your answer by editing it.

    – Bleeding Fingers
    Apr 14 '14 at 12:35











  • Hyperlinked the "here" text with blog of explanation..

    – Godwin
    Dec 21 '15 at 15:37












  • 2





    Please provide a bit more information and maybe a code example on how you solved the issue so that it is helpful to others with the same problem. After that accept your own answer, which is fine.

    – Marcel Gwerder
    Apr 14 '14 at 12:20











  • Could you please elaborate your answer by editing it.

    – Bleeding Fingers
    Apr 14 '14 at 12:35











  • Hyperlinked the "here" text with blog of explanation..

    – Godwin
    Dec 21 '15 at 15:37







2




2





Please provide a bit more information and maybe a code example on how you solved the issue so that it is helpful to others with the same problem. After that accept your own answer, which is fine.

– Marcel Gwerder
Apr 14 '14 at 12:20





Please provide a bit more information and maybe a code example on how you solved the issue so that it is helpful to others with the same problem. After that accept your own answer, which is fine.

– Marcel Gwerder
Apr 14 '14 at 12:20













Could you please elaborate your answer by editing it.

– Bleeding Fingers
Apr 14 '14 at 12:35





Could you please elaborate your answer by editing it.

– Bleeding Fingers
Apr 14 '14 at 12:35













Hyperlinked the "here" text with blog of explanation..

– Godwin
Dec 21 '15 at 15:37





Hyperlinked the "here" text with blog of explanation..

– Godwin
Dec 21 '15 at 15:37

















draft saved

draft discarded
















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f17465032%2fstarting-sharepoint-2007-workflows-simultaneously-on-list-items-using-timer-job%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Save data to MySQL database using ExtJS and PHP [closed]2019 Community Moderator ElectionHow can I prevent SQL injection in PHP?Which MySQL data type to use for storing boolean valuesPHP: Delete an element from an arrayHow do I connect to a MySQL Database in Python?Should I use the datetime or timestamp data type in MySQL?How to get a list of MySQL user accountsHow Do You Parse and Process HTML/XML in PHP?Reference — What does this symbol mean in PHP?How does PHP 'foreach' actually work?Why shouldn't I use mysql_* functions in PHP?

Compiling GNU Global with universal-ctags support Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) Data science time! April 2019 and salary with experience The Ask Question Wizard is Live!Tags for Emacs: Relationship between etags, ebrowse, cscope, GNU Global and exuberant ctagsVim and Ctags tips and trickscscope or ctags why choose one over the other?scons and ctagsctags cannot open option file “.ctags”Adding tag scopes in universal-ctagsShould I use Universal-ctags?Universal ctags on WindowsHow do I install GNU Global with universal ctags support using Homebrew?Universal ctags with emacsHow to highlight ctags generated by Universal Ctags in Vim?

Add ONERROR event to image from jsp tldHow to add an image to a JPanel?Saving image from PHP URLHTML img scalingCheck if an image is loaded (no errors) with jQueryHow to force an <img> to take up width, even if the image is not loadedHow do I populate hidden form field with a value set in Spring ControllerStyling Raw elements Generated from JSP tagds with Jquery MobileLimit resizing of images with explicitly set width and height attributeserror TLD use in a jsp fileJsp tld files cannot be resolved