README.md in unidom-action-0.2 vs README.md in unidom-action-0.3
- old
+ new
@@ -25,11 +25,20 @@
```ruby
reason = Unidom::Action::Reason.create! activity_code: 'SRRR', name: 'broken', description: 'The box was broken.'
# SRRR = Shipment Receipt Rejection Reason
user = Unidom::Visitor::User.create!
+
+# Create/Update/Delete the person
person = Unidom::Party::Person.create! name: 'Tim'
+acting = Unidom::Action::Acting.create! actor_visitor: user, actor_party: person, reason: reason, acted: person, from_value: {}, thru_value: { name: 'Time' }
+# Update the state of the person
+person.state = 'R'
+person.save!
transition = Unidom::Action::StateTransition.create! transitor_visitor: user, transitor_party: person, reason: reason, subject: person, from_state: 'C', thru_state: 'R'
+
+# Soft destroy the person
+person.soft_destroy
obsolescence = Unidom::Action::Obsolescence.create! obsolescer_visitor: user, obsolescer_party: person, reason: reason, obsolesced: person
# The reason could be nil.
```