How to schedule CreateVersionProcess() using sling scheduler?


i created custom workflow process step implementing

 

inside custom workflow process step. want call sling scheduler , add job

 

this custom workflow step class :

 

class mystep implements workflowprocess

{

 

public void execute(workitem item, workflowsession session, metadatamap args) throws workflowexception

{

 

//blah //blah

 

// here scheduling job using sling scheduler.

// throws nullpointer exception @ line.

 

this.scheduler.firejobat("productnewspublishjob",job, null,firedate);

 

}

 

 

}

 

 

this job class:

 

class myjobclass implements runnable

{

 

public void run()

{

 

//blah blah //blah

 

createversionprocess cp = new createversionprocess();

 

cp.execute(workitem, session, metadata);

 

activatepageprocess ap = new activatepageprocess();

 

ap.execute(workitem,session,metadata);

 

 

}

 

}

 

 

basically trying is, want schedule versioning , activation of page @ later date, depending on conditions. possible call createversionprocess , activatepageprocess like this?? also, if there better advice/solution scenario, love take it.

 

 

thanks

--rajesh



More discussions in Archived Spaces


adobe

Comments

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

After Effect warning: A problem occurred when processing OpenGL commands

Preconditions Failed. - Joomla! Forum - community, help and support