Hi Community,

does it require more resources to have several business processes left "executing" (waiting for a timer condition to be satisfied to do something) or to have a single process scheduled to run every 5 min (i.e) that searches for some record that has a "due date" condition close to the current date time?

the difference would be that the former would be left "pending" for sometime, and the latter would terminate.

 

Let us know,

Thanks in advance.



Best regards,

 

Luca

Like 0

Like

1 comments
Best reply

Hi Luca,

The better approach in this case - is to have a single scheduled process that will be executed fastly. 



Because each process, that is executing in background mode using 1 thread of quartz worker (Default value = 5 workers). So, if you will start a lot of the background processes, that are executing (waiting for some event) - you can overfill the background processes queue and new background processes will not start correctly until the old processes are not finished and the quartz worker is not free for a new task.

Hi Luca,

The better approach in this case - is to have a single scheduled process that will be executed fastly. 



Because each process, that is executing in background mode using 1 thread of quartz worker (Default value = 5 workers). So, if you will start a lot of the background processes, that are executing (waiting for some event) - you can overfill the background processes queue and new background processes will not start correctly until the old processes are not finished and the quartz worker is not free for a new task.

Show all comments

When I am in my section with process, in this case Lead, and attempt to schedule a Task with the schedule task -button.

 

The Start-time I choose is one week from now. However the reminder-time is initially set to the current date and time. 2019-04-05 09:28. (The reminder time is set to one week ahead of the start time, which seems strange).

Another strange thing that happens is that when i uncheck and re-check the Reminders > Responsible check-box. The Reminder date and time changes to the vales of the Activitys Start time, date and time.

Update : The issue described above only exists when I have the add-in Task Control for bpm’online (https://marketplace.bpmonline.com/app/task-control-bpmonline) installed.

Like 0

Like

1 comments

Dear Julius,

Please send an email to support@bpmonline.com. We will be glad to help!

Best regards,

Angela

Show all comments

Hello community!

I have a business proces that when run manually works perfect but if use the schedule code, the code schedule the proces perfect but when ejecute return a error about the null object.

Can you help me to find the error?

The bussines proces to ejecute (think that error is about the userConnection):

var userConnection = (UserConnection)HttpContext.Current.Session[ "UserConnection" ];
 
var delete = new Delete(userConnection)
        .From("BGlobalSurveyLinks"); 
delete.Execute();
 
var insert = new Insert(userConnection).Into("BGlobalSurveyLinks")
	 .Set("Name", Column.Const(surveyLink))
	.Set("Description", Column.Const(surveyTitle)); 
insert.Execute();

The schedule code (that work perfect becouse the BP execute every 5 minutes):

var userConnection = (UserConnection)HttpContext.Current.Session["UserConnection"];
string schedulerJobGroupName = "BGlobal";//- any name
string jobProcessName = "BGlobalSincronize"; //- the name of the process
string schedulerJobName = "Schedule"; //- any name
AppScheduler.RemoveJob(schedulerJobName, schedulerJobGroupName);
var job = AppScheduler.CreateProcessJob(schedulerJobName, schedulerJobGroupName, jobProcessName, userConnection.Workspace.Name, userConnection.CurrentUser.Name);
var trigger = new SimpleTriggerImpl(schedulerJobName + "Trigger", schedulerJobGroupName, DateTime.UtcNow.AddMinutes(5));
AppScheduler.Instance.ScheduleJob(job, trigger);
return true;

 

Like 0

Like

1 comments

The business process doesn't work because you don't send "userConnection" in a correct format. Please upgrade your instance to 7.11 and use an out-of-the-box scheduler that was embedded into a business process designer.

https://www.bpmonline.com/release-7-11

 

Show all comments