Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
Hellow, I'm wondering if is there any possibility to attach workflows to field collection items (FCI)?
In my specific case I'm triying to set a workflow to invoice items (lines) which are FCI, every invoice item has a budget account, that account has responsible for sign or approve charges to that account
Is there any chance to achieve this ?
Thanks in advance
Comments
Comment #1
johnvThis would be possible if Workflow were a 'true' Field API field, as proposed in #2019345: Create a 'Workflow Field' with Widget, Formatter, Fieldtype
Comment #2
johnvLet's focus on #2019345.
Comment #3
gusantor CreditAttribution: gusantor commentedok, thanks
Comment #4
johnvThis should be working now using Workflow Field. Please re-open if there is a problem.
Comment #6
SocialNicheGuru CreditAttribution: SocialNicheGuru commentedThis is what I am seeing on worfklow ; Information added by Drupal.org packaging script on 2014-05-21 version = "7.x-2.4-beta1+0-dev"
https://drupal.org/node/2264793
Comment #7
johnv#2264793: Adding a workflow to a field collection causes WSOD: PHP Fatal error: Cannot access empty property in drupal7/modules/field/field.attach.inc on line 324 is fixed.
Comment #8
johnvComment #9
gusantor CreditAttribution: gusantor commentedWorkflow Field isn't solution for me :(
I dont need just to hide/show fields depending of the Host entity workflow state, but to give the FCI its own WF (i.e.: approved, rejected, paid, etc)
by now I'm just doing it programmatically , it is slow, hard to maintain and lacking of all te tracking benefits of real WF
is there a way to achieve this functionality ?
Comment #10
johnv@gusantor, please re-open the issue when you have a new question (or create a new one). So you still cannot add a Workflow to a Field Collection? So this is not solved in your opinion?
Comment #11
hassanali20 CreditAttribution: hassanali20 commented@gusantor - did you find a solution to your probelm? I have similar situation to logically divide the node fields and have approval workflow on each field collection (or group of fields).
Ex: an article node having editorial data and images, both are reviewed and approved by two different people.
Comment #12
gusantor CreditAttribution: gusantor commented@hassanali20, Hi, nope, at least not by the way of WF
I just did it programmatically
Somewhere I read that it is possible to add WF to FCI (or entities generally speaking), but I haven't the time to try or investigate :( ... sorry
Comment #13
johnvNew features for D7 are not processed anymore, (unless a patch is provided)