on ‎2018 Apr 10 8:37 AM
i came across one concept in hybris , is premature event, How can I utilize this concept in OMS
Premature Events Events are generally triggered from the outside. This may happen by polling some data regularly using CronJobs or by receiving a web service call. Most likely the data is fetched or arrives from an external system. Occasionally, it may be the case that external data is available and is used for triggering an event before there is a matching scheduled action in form of a task item inside the database. In case such a 'premature' event is triggered while there is no task condition waiting for it, the Task stores the incoming event for an unlimited time. The first to-be-scheduled task holding a condition matching the event's unique name consumes the premature event immediately.
When I am trying to use this concept I am getting following error:Invalid type of task runner bean 'completed'' - expected interface de.hybris.platform.task.TaskRunner
I think I should create a Task for this, I might not able to use this concept using Action.
final TaskModel task = modelService.create(TaskModel.class);
task.setRunnerBean(state.toLowerCase());
taskService.scheduleTask(task);
this is how I am using premature concept for OMS .
Let me know if someone has used this concept in Hybris Or can help me with better approach.
we are getting data from Azure queue and every time oms flow is going to a wait state for the next response. Thanks
Request clarification before answering.
A quick question: What are you trying to set as the Runner Bean? What is the value of state? Please check the below link for how the usage of it: https://help.hybris.com/6.7.0/hcd/411f323f15c9412c81df002f1105c8ff.html
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.