Replies: 8 comments
-
they are ineffective for your work,you will add a backgroudTask to do it。 |
Beta Was this translation helpful? Give feedback.
-
Thanks @zl2fxy , with the background task, is it configurable? I understand the custom task will require coding (to do Table scanning); but overall, is it configurable (to some extend) just like Workflow? |
Beta Was this translation helpful? Give feedback.
-
1.the background task, it is configurable,it will work with your codes. |
Beta Was this translation helpful? Give feedback.
-
Thanks @zl2fxy , OK I get it, will look at some reference about background tasks. Could you point out - without scanning the Table1 to determine the DueDate records, how would you do it in this case? Just to be clear, why I say "scan" I mean SQL query, sorry for the confusion caused. |
Beta Was this translation helpful? Give feedback.
-
You could implement everything with a custom background task. Look at the classes that already implement We could do that in Workflow, if we had a |
Beta Was this translation helpful? Give feedback.
-
Thanks @sebastienros , I see the below implementation, however it looks like there is no way to pass in parameters from the configuration page ? For example, how can I pass a INT (number) from the Admin's Task configuration page to DoWorkAsync() ? At the moment, there is just a Schedule text box.
|
Beta Was this translation helpful? Give feedback.
-
IBackgroundTask is use for your work,it has a perfect mechanism to manage time tasks.you should do it that is you triggering BackgroundTask when you storing your data。 |
Beta Was this translation helpful? Give feedback.
-
Thanks @zl2fxy , I can see the [Set Parameter] when configuring a Workflow, this could be the Liquid engine you mentioned? But the Workflow is different than the Background Tasks, how to connect both together? You can see from the below picture, I have already got a Background Task but it is not listed in the Workflow editor. In Workflow Editor: |
Beta Was this translation helpful? Give feedback.
-
What is the best approach to implement the following feature?
I have a custom module which uses a custom data table, call it: Table1; In Table1 there are some columns, one of them call [Due date]. I'd like to implement a feature that for all records in Table1, if [Due Date] = today's date, then send an email (a column in Table1) accordingly; it will be a schedule task running on daily basis.
I have added the Timer module and setup a workflow, but not sure which Task can fit the above requirement. It is understood that custom code is required to scan Table1, but try to make it configurable where possible. Any suggestion is welcomed!
Beta Was this translation helpful? Give feedback.
All reactions