Form Runner - New Form Workflow

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Form Runner - New Form Workflow

andy.kallenbach@saberco.net
Is their any way to pre-control the dataId of a a new form?

Since we have a custom persistence layer, I am thinking about doing the following...
  • Precreate the form data.xml and uuid for the new form instance in the database
  • Start user out at orbeon/fr/form/app/edit/uuid
Is their a better way of determining ahead of time what the UUID of a new form is or telling form runner what UUID to use?

Regards,

Andy Kallenbach





--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Form Runner - New Form Workflow

Erik Bruchez
Administrator
Andy,

It's not possible to know in advance because we use a random number to
generate the unique id.

Ideally the persistence service would return the id. But this would be
a new feature.

I am trying to think about other solutions, like checking if the id is
present in your system upon first PUt, and if not actually store the
data with your own id. But that might cause issues in some cases (e.g.
if the user uses the Save button repeatedly, what do you do?).

So although it's not ideal, your solution might be acceptable.

-Erik

On Sat, Sep 17, 2011 at 1:35 PM, Andrew J. Kallenbach
<[hidden email]> wrote:

> Is their any way to pre-control the dataId of a a new form?
>
> Since we have a custom persistence layer, I am thinking about doing the
> following...
>
> Precreate the form data.xml and uuid for the new form instance in the
> database
> Start user out at orbeon/fr/form/app/edit/uuid
>
> Is their a better way of determining ahead of time what the UUID of a new
> form is or telling form runner what UUID to use?
>
> Regards,
>
> Andy Kallenbach
>
>
>
>
>
> --
> You receive this message as a subscriber of the [hidden email] mailing
> list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> OW2 mailing lists service home page: http://www.ow2.org/wws
>
>


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws