Wednesday, December 4, 2013

A hint how to use collect in OCL

Sometimes I want to merge several list into one big list. Consider this OCL expression

WorkPool.allinstances.buffInProcess->union(WorkPool.allinstances.buffopenplans)->union(Workpool.allinstances.buffforwarded)

So in this case Workpool contain some buffers or multilinks. I want to merge 3 multilinks into one list.
It can be done with collect.

WorkPool.allinstances->collect(buffInProcess->union(buffopenplans)->union(buffforwarded))

The result is exact the same but you do not need to use WorkPool.allinstances on many places.

Another case

Instead of

if myLooongexpression.condition then
  myLooongexpression.attributeone
else
  myLooongexpression.attributetwo
endif
 
do this

myLooongexpression->collect(if condition then attributeone else attributetwo endif)

Sunday, November 10, 2013

Bold need your attention

Bold is propably the best persistant framework for Delphi. Only Embarcadero can make it available again. Tell them that community need Bold and give yor votes on QC. Currently it have 216 votes an place 10, but more is needed. Thanks!

Saturday, July 20, 2013

Future for Bold ?

Many may wonder what happened after my petition ? Well, the discussion with Embarcadero is not dead. There are now 176 supporters on the petition and I am still hopeful that we reach a solution for this issue.

Because it is an issue for: 
  1. For those developers that still use Bold in old but important applications. They are forced to stay with an old Delphi version. Many have chosen to leave Delphi for more active development platforms.
  2. For the whole Delphi community that are not aware what a great ORM framework Bold is. For the right type of application ORM and Bold is a really timesaver.
  3. For Embarcadero that miss those Delphi licenses if those customers above would update.
  4. For my employer Attracs as we may need developers with Bold experience. It is not easy to find these days.
I have promised Embarcadero to not reveal any details, but there have been discussions with Embarcadero about how we should continue with Bold. In the meantime I collected some links of Bold resources. Mostly where people mention Bold and what they want it to be. Yes I know I am involved in many discussions... :)

Blogs and forums
Other resources