WorflowProcess,Scheduler,JobManger and a JobConsumer in workflow
HI !
i have a problem that ive been trying to solve in my mind but its appears to be a little bit problematic.
the problem is that i need to created a workflow that will process some data from content fragments via payload and then that data will be use to launch multiple jobs/event with a different time, lets say for example that we have : cf = contentFragment
cfa - cron expre 1 = x | cron expre 2 = y
cfb - cron expre 1 = d | cron expre 2 = c
cfb - cron expre 1 = s | cron expre 2 = a
this three cf will be processed via payload path in the workflow custom step process, all of the cf will have two different cron expression that will represent the date when a property is gonna be published and the date when that property is gonna be unpublished. all those cron expressions can be different.
now thats the problem but for my solution i this steps :
- 1.- create a custom adapter factory to adapt the cf via adapTo in java.
- 2.- create inside the customworkflow class a jobmanager with a job_topic to use
- 3.- create a jobconsumer with a scheduler in it and passing the required value to use via job properties map.
now my problem comes in the third step, as by using this
List<Cf> propertyListRetrieveFromPropertiesInJobProperties;
for (Cf object : propertyListRetrieveFromPropertiesInJobProperties) {
map = may with properties take from the Cf object
scheduler.scheduler(this,map)
}
now this solution is not working as the jobs are not starting or doing anything when the time in cron express happens.
can someone advise me on how to do this ? my main problem is that i am not being able to see how to connect the workflowProcess and make that workflowProcess to launch the multiple jobs.
thanks in advance and any help will be greatly appreciated