Yii Framework Forum: Yii Workflow - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Yii Workflow Rate Topic: -----

#1 User is offline   Yii123 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 47
  • Joined: 13-March 13

Posted 21 March 2013 - 01:29 AM

I have application like forum, registered users can post questions to this forum, and registered users can reply to any questions. The states of question are – Open- post a question
Active- Get a reply for posted question
Closed-
if any user posted answer to a particular question, send a mail to the user who posted that question.
Is it possible to use the workflow in this case?
0

#2 User is offline   Raoul 

  • Master Member
  • PipPipPipPip
  • Yii
  • Group: Members
  • Posts: 647
  • Joined: 29-November 08
  • Location:Paris, France

Posted 21 March 2013 - 03:31 AM

Hi Yii123,
I have published a small extension that handles workflow managment with Yii and I confirm it could be user for such case.

That being said, if it is not more complex that what you describe here, maybe implemeting it from scratch could be more simple and efficient. Again this depends on the number of status (here 5) and transitions between status (here .. I don't know).

You could have a look to the documentation to know more about this extension.

Hope this helps
ciao
B)
0

#3 User is offline   Yii123 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 47
  • Joined: 13-March 13

Posted 21 March 2013 - 05:07 AM

Thanks for rply. I tried those two links but can't understand much more. In this case how create workflow? In the controller action, how set status for a post? How send mail using this workflow?

Thanks.
0

#4 User is offline   Raoul 

  • Master Member
  • PipPipPipPip
  • Yii
  • Group: Members
  • Posts: 647
  • Joined: 29-November 08
  • Location:Paris, France

Posted 22 March 2013 - 04:19 AM

Hi Yii123,
unfortunatly, if you read the documentation and still have these doubts about how tu use the extension, it may be quite difficult for me to explain more. Look, what you can do is to download the sample blog application that is a modification of the Yii blog sample app, modified to use the simpleWorkflow extension.

Download it from here and look at the code : it contains everything to strat with the extension.

Hope this helps
ciao
B)
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users