You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by Adrian Crum <ad...@hlmksw.com> on 2008/06/25 17:47:06 UTC

Recurring Work Efforts

I see there is a recurrenceInfoId field in the WorkEffort entity, but I 
can't find a way to set up a recurring work effort. Does anyone know how 
that can be done?

-Adrian

Re: Recurring Work Efforts

Posted by Adrian Crum <ad...@hlmksw.com>.
How else would it work?

I create a recurring workeffort for depositing my paycheck at the bank. 
It repeats every two weeks.

If the recurring workeffort creates a child workeffort, then I can 
update the child's status to "Complete" once I deposit my paycheck.

If there is only one workeffort, how do I update a single instance of it 
every two weeks?

-Adrian

David E Jones wrote:
> 
> Wouldn't that result in a lot of redundant WorkEffort records, and the 
> need for background processes to run to keep them up to date and 
> consistent, and a lot of risk that they would get out of date and 
> inconsistent?
> 
> -David
> 
> 
> On Jun 25, 2008, at 12:30 PM, Adrian Crum wrote:
> 
>> Btw, I was thinking a recurring work effort would create child 
>> workefforts - that are related to the parent workeffort as a 
>> "Scheduled Interval" type. What do you think?
>>
>> -Adrian
>>
>> Adrian Crum wrote:
>>> Cool. I'll get it working for the existing recurrence rules, then 
>>> tackle new rule sets later.
>>> -Adrian
>>> David E Jones wrote:
>>>>
>>>> Yes, I think so.
>>>>
>>>> I've tried to encourage people to use re-usable entities like 
>>>> WorkEffort and RecurrenceInfo/Rule to implement these things over 
>>>> the years, and so there is some code in place for them. Even 
>>>> recently Bilgin did some work on this for "happy hour" promotions:
>>>>
>>>> https://issues.apache.org/jira/browse/OFBIZ-1756
>>>>
>>>> There is a bit of code already implemented to determine when a 
>>>> recurrence applies and such, but I know more work needs to be done. 
>>>> There are also certain fields on the RecurrenceRule entity that I'm 
>>>> not sure are really supported, along the lines of what you were 
>>>> asking about in the other thread for things like "the first Monday 
>>>> of each week at 2PM" and such.
>>>>
>>>> -David
>>>>
>>>>
>>>> On Jun 25, 2008, at 11:57 AM, Adrian Crum wrote:
>>>>
>>>>> David,
>>>>>
>>>>> Thanks for the info!
>>>>>
>>>>> Would it be worthwhile for me to add some code to the WorkEffort 
>>>>> component to set up a recurring work effort? It's something we need 
>>>>> here.
>>>>>
>>>>> -Adrian
>>>>>
>>>>> David E Jones wrote:
>>>>>> I think it's only used by background code at the minute, or in 
>>>>>> other words no UI has been created for it yet.
>>>>>> There is a simplistic UI that populates the entity in webtools for 
>>>>>> the service engine job scheduler thingy.
>>>>>> -David
>>>>>> On Jun 25, 2008, at 9:47 AM, Adrian Crum wrote:
>>>>>>> I see there is a recurrenceInfoId field in the WorkEffort entity, 
>>>>>>> but I can't find a way to set up a recurring work effort. Does 
>>>>>>> anyone know how that can be done?
>>>>>>>
>>>>>>> -Adrian
>>>>
>>>>
> 
> 

Re: Recurring Work Efforts

Posted by David E Jones <jo...@hotwaxmedia.com>.
Wouldn't that result in a lot of redundant WorkEffort records, and the  
need for background processes to run to keep them up to date and  
consistent, and a lot of risk that they would get out of date and  
inconsistent?

-David


On Jun 25, 2008, at 12:30 PM, Adrian Crum wrote:

> Btw, I was thinking a recurring work effort would create child  
> workefforts - that are related to the parent workeffort as a  
> "Scheduled Interval" type. What do you think?
>
> -Adrian
>
> Adrian Crum wrote:
>> Cool. I'll get it working for the existing recurrence rules, then  
>> tackle new rule sets later.
>> -Adrian
>> David E Jones wrote:
>>>
>>> Yes, I think so.
>>>
>>> I've tried to encourage people to use re-usable entities like  
>>> WorkEffort and RecurrenceInfo/Rule to implement these things over  
>>> the years, and so there is some code in place for them. Even  
>>> recently Bilgin did some work on this for "happy hour" promotions:
>>>
>>> https://issues.apache.org/jira/browse/OFBIZ-1756
>>>
>>> There is a bit of code already implemented to determine when a  
>>> recurrence applies and such, but I know more work needs to be  
>>> done. There are also certain fields on the RecurrenceRule entity  
>>> that I'm not sure are really supported, along the lines of what  
>>> you were asking about in the other thread for things like "the  
>>> first Monday of each week at 2PM" and such.
>>>
>>> -David
>>>
>>>
>>> On Jun 25, 2008, at 11:57 AM, Adrian Crum wrote:
>>>
>>>> David,
>>>>
>>>> Thanks for the info!
>>>>
>>>> Would it be worthwhile for me to add some code to the WorkEffort  
>>>> component to set up a recurring work effort? It's something we  
>>>> need here.
>>>>
>>>> -Adrian
>>>>
>>>> David E Jones wrote:
>>>>> I think it's only used by background code at the minute, or in  
>>>>> other words no UI has been created for it yet.
>>>>> There is a simplistic UI that populates the entity in webtools  
>>>>> for the service engine job scheduler thingy.
>>>>> -David
>>>>> On Jun 25, 2008, at 9:47 AM, Adrian Crum wrote:
>>>>>> I see there is a recurrenceInfoId field in the WorkEffort  
>>>>>> entity, but I can't find a way to set up a recurring work  
>>>>>> effort. Does anyone know how that can be done?
>>>>>>
>>>>>> -Adrian
>>>
>>>


Re: Recurring Work Efforts

Posted by Adrian Crum <ad...@hlmksw.com>.
Btw, I was thinking a recurring work effort would create child 
workefforts - that are related to the parent workeffort as a "Scheduled 
Interval" type. What do you think?

-Adrian

Adrian Crum wrote:
> Cool. I'll get it working for the existing recurrence rules, then tackle 
> new rule sets later.
> 
> -Adrian
> 
> David E Jones wrote:
>>
>> Yes, I think so.
>>
>> I've tried to encourage people to use re-usable entities like 
>> WorkEffort and RecurrenceInfo/Rule to implement these things over the 
>> years, and so there is some code in place for them. Even recently 
>> Bilgin did some work on this for "happy hour" promotions:
>>
>> https://issues.apache.org/jira/browse/OFBIZ-1756
>>
>> There is a bit of code already implemented to determine when a 
>> recurrence applies and such, but I know more work needs to be done. 
>> There are also certain fields on the RecurrenceRule entity that I'm 
>> not sure are really supported, along the lines of what you were asking 
>> about in the other thread for things like "the first Monday of each 
>> week at 2PM" and such.
>>
>> -David
>>
>>
>> On Jun 25, 2008, at 11:57 AM, Adrian Crum wrote:
>>
>>> David,
>>>
>>> Thanks for the info!
>>>
>>> Would it be worthwhile for me to add some code to the WorkEffort 
>>> component to set up a recurring work effort? It's something we need 
>>> here.
>>>
>>> -Adrian
>>>
>>> David E Jones wrote:
>>>> I think it's only used by background code at the minute, or in other 
>>>> words no UI has been created for it yet.
>>>> There is a simplistic UI that populates the entity in webtools for 
>>>> the service engine job scheduler thingy.
>>>> -David
>>>> On Jun 25, 2008, at 9:47 AM, Adrian Crum wrote:
>>>>> I see there is a recurrenceInfoId field in the WorkEffort entity, 
>>>>> but I can't find a way to set up a recurring work effort. Does 
>>>>> anyone know how that can be done?
>>>>>
>>>>> -Adrian
>>
>>
> 

Re: Recurring Work Efforts

Posted by Adrian Crum <ad...@hlmksw.com>.
Cool. I'll get it working for the existing recurrence rules, then tackle 
new rule sets later.

-Adrian

David E Jones wrote:
> 
> Yes, I think so.
> 
> I've tried to encourage people to use re-usable entities like WorkEffort 
> and RecurrenceInfo/Rule to implement these things over the years, and so 
> there is some code in place for them. Even recently Bilgin did some work 
> on this for "happy hour" promotions:
> 
> https://issues.apache.org/jira/browse/OFBIZ-1756
> 
> There is a bit of code already implemented to determine when a 
> recurrence applies and such, but I know more work needs to be done. 
> There are also certain fields on the RecurrenceRule entity that I'm not 
> sure are really supported, along the lines of what you were asking about 
> in the other thread for things like "the first Monday of each week at 
> 2PM" and such.
> 
> -David
> 
> 
> On Jun 25, 2008, at 11:57 AM, Adrian Crum wrote:
> 
>> David,
>>
>> Thanks for the info!
>>
>> Would it be worthwhile for me to add some code to the WorkEffort 
>> component to set up a recurring work effort? It's something we need here.
>>
>> -Adrian
>>
>> David E Jones wrote:
>>> I think it's only used by background code at the minute, or in other 
>>> words no UI has been created for it yet.
>>> There is a simplistic UI that populates the entity in webtools for 
>>> the service engine job scheduler thingy.
>>> -David
>>> On Jun 25, 2008, at 9:47 AM, Adrian Crum wrote:
>>>> I see there is a recurrenceInfoId field in the WorkEffort entity, 
>>>> but I can't find a way to set up a recurring work effort. Does 
>>>> anyone know how that can be done?
>>>>
>>>> -Adrian
> 
> 

Re: Recurring Work Efforts

Posted by David E Jones <jo...@hotwaxmedia.com>.
Yes, I think so.

I've tried to encourage people to use re-usable entities like  
WorkEffort and RecurrenceInfo/Rule to implement these things over the  
years, and so there is some code in place for them. Even recently  
Bilgin did some work on this for "happy hour" promotions:

https://issues.apache.org/jira/browse/OFBIZ-1756

There is a bit of code already implemented to determine when a  
recurrence applies and such, but I know more work needs to be done.  
There are also certain fields on the RecurrenceRule entity that I'm  
not sure are really supported, along the lines of what you were asking  
about in the other thread for things like "the first Monday of each  
week at 2PM" and such.

-David


On Jun 25, 2008, at 11:57 AM, Adrian Crum wrote:

> David,
>
> Thanks for the info!
>
> Would it be worthwhile for me to add some code to the WorkEffort  
> component to set up a recurring work effort? It's something we need  
> here.
>
> -Adrian
>
> David E Jones wrote:
>> I think it's only used by background code at the minute, or in  
>> other words no UI has been created for it yet.
>> There is a simplistic UI that populates the entity in webtools for  
>> the service engine job scheduler thingy.
>> -David
>> On Jun 25, 2008, at 9:47 AM, Adrian Crum wrote:
>>> I see there is a recurrenceInfoId field in the WorkEffort entity,  
>>> but I can't find a way to set up a recurring work effort. Does  
>>> anyone know how that can be done?
>>>
>>> -Adrian


Re: Recurring Work Efforts

Posted by Adrian Crum <ad...@hlmksw.com>.
David,

Thanks for the info!

Would it be worthwhile for me to add some code to the WorkEffort 
component to set up a recurring work effort? It's something we need here.

-Adrian

David E Jones wrote:
> 
> I think it's only used by background code at the minute, or in other 
> words no UI has been created for it yet.
> 
> There is a simplistic UI that populates the entity in webtools for the 
> service engine job scheduler thingy.
> 
> -David
> 
> 
> On Jun 25, 2008, at 9:47 AM, Adrian Crum wrote:
> 
>> I see there is a recurrenceInfoId field in the WorkEffort entity, but 
>> I can't find a way to set up a recurring work effort. Does anyone know 
>> how that can be done?
>>
>> -Adrian
> 
> 

Re: Recurring Work Efforts

Posted by David E Jones <jo...@hotwaxmedia.com>.
I think it's only used by background code at the minute, or in other  
words no UI has been created for it yet.

There is a simplistic UI that populates the entity in webtools for the  
service engine job scheduler thingy.

-David


On Jun 25, 2008, at 9:47 AM, Adrian Crum wrote:

> I see there is a recurrenceInfoId field in the WorkEffort entity,  
> but I can't find a way to set up a recurring work effort. Does  
> anyone know how that can be done?
>
> -Adrian